手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >FCKEditor网页编辑器 几点使用心得
FCKEditor网页编辑器 几点使用心得
摘要:1、挂接事件,比如onkeydown事件,要在FCKeditor_OnComplete里实现:复制代码代码如下:functionFCKedi...

1、挂接事件,比如onkeydown事件,要在FCKeditor_OnComplete里实现:

复制代码 代码如下:

function FCKeditor_OnComplete( editorInstance )

{

if (document.all) // IE

editorInstance.EditorDocument.attachEvent("onkeypress", FCKeditor_OnKeyup) ;

else// other browser

editorInstance.EditorDocument.addEventListener( 'onkeypress', FCKeditor_OnKeyup, true );

}

2、挂接后如果调用了fckeditor的SetHTML函数,则挂接事件会失效,要改用oEditor.EditorDocument.body.innerHTML来设置内容即可。

3、用window.event.keyCode只能取到null值,要用FCKeditorAPI.GetInstance('FCKeditor1').EditorWindow.event.keyCode。

4、按回车符后生成的是是<br>还是<p>由fckconfig.js文件里的FCKConfig.EnterMode/FCKConfig.ShiftEnterMode决定,也可动态设置但属性名不是FCKConfig,而是Config。

【FCKEditor网页编辑器 几点使用心得】相关文章:

CKEditor/FCKEditor 使用 CKeditor 3.0.1 快速使用教程(含插入图片)

HTML 编辑器 FCKeditor使用详解

ThinkPHP中FCKeditor编辑器的使用方法

eWebEditor 辑器按钮失效 IE8下eWebEditor编辑器无法使用的解决方法

FCKEditor 自定义用户目录的修改步骤 (附源码)

UEditor编辑器自定义上传图片或文件路径的修改方法

FCKeditor2.3 For PHP 详细整理的使用参考

免费开源百度编辑器(UEditor)使用方法

KindEditor 编辑器 v3.5.1 修改版

FCKeditor 2.0 简化和使用

精品推荐
分类导航