常春岛资源网 Design By www.syssdc.com
demo:

function FCKeditor_OnComplete( editorInstance )
{
editorInstance.EditorDocument.attachEvent("onkeydown", editor_keydown);
editorInstance.EditorDocument.attachEvent("onkeyup", editor_keyup);
}
function editor_keydown()
{
var oEditor = FCKeditorAPI.GetInstance('inputmsg') ;
var keycode = oEditor.EditorWindow.event.keyCode;
if(keycode==13) {

}

}
function clearInput()
{
var oEditor = FCKeditorAPI.GetInstance('inputmsg') ;
oEditor.Commands.GetCommand( "NewPage" ).Execute(); // oEditor.SetHTML("") ;
}

function editor_keyup()
{
var oEditor = FCKeditorAPI.GetInstance('inputmsg') ;
var keycode = oEditor.EditorWindow.event.keyCode;

if(keycode==13) {
clearInput();
}
}
标签:
fckediter,javascript事件

常春岛资源网 Design By www.syssdc.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
常春岛资源网 Design By www.syssdc.com