thank you for your answer and I've solved the problem above(submit by press ctrl+enter),but now,although I can press ctrl+enter to submit ,if I do it twice or more ,an error occurs which says "error 800a025e caused by this action can not be completed". It doesnt occur in Firefox
Error:由于出现错误 800a025e 而导致此项操作无法完成。(error 800a025e caused by this action can not be completed)
Address:http://localhost:22146/WXBlog/CuteSoft_Client/CuteEditor/Load.ashx?type=scripts&file=IE_Loader
I googled it and it turned out once a bug in FCKEditor(a famous editor),and i wonder if it's a bug of CuteEditor or just my mistake somewhere.
The following is my code to implement "ctrl + enter" shortcut key.
Content.Attributes["oninitialized"] = "CuteEditor_OnInitialized(this)";
function CuteEditor_OnInitialized(editor) {
if (editor.IsReady) {
editor.HookEvent(editor.GetDocument(), "keydown", function(e) {
var e = e || editor.GetWindow().event;
if (e.ctrlKey && e.keyCode == 13) {
document.getElementById("<%= bBlogSubmit.ClientID %>").click();
}
});
}
}
waiting for your answer. thank you