欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

FCKEditor網(wǎng)頁(yè)編輯器 幾點(diǎn)使用心得

 更新時(shí)間:2009年10月27日 22:08:56   作者:  
FCKEditor網(wǎng)頁(yè)編輯器 幾點(diǎn)使用心得,需要的朋友可以參考下。
1、掛接事件,比如onkeydown事件,要在FCKeditor_OnComplete里實(shí)現(xiàn):
復(fù)制代碼 代碼如下:

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、掛接后如果調(diào)用了fckeditor的SetHTML函數(shù),則掛接事件會(huì)失效,要改用oEditor.EditorDocument.body.innerHTML來(lái)設(shè)置內(nèi)容即可。
3、用window.event.keyCode只能取到null值,要用FCKeditorAPI.GetInstance('FCKeditor1').EditorWindow.event.keyCode。
4、按回車符后生成的是是<br>還是<p>由fckconfig.js文件里的FCKConfig.EnterMode/FCKConfig.ShiftEnterMode決定,也可動(dòng)態(tài)設(shè)置但屬性名不是FCKConfig,而是Config。

相關(guān)文章

最新評(píng)論