来源:自学PHP网 时间:2014-12-14 21:28 作者: 阅读:次
[导读] fckediter javascript事件函数代码,另外fckeditor的可以扩展性不错,大家可以学习下,具体的代码,可以参考脚本之家以前发布的文章。...
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(); } } |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com