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

fckeditor 常用函數(shù)

 更新時間:2009年06月19日 23:09:22   作者:  
對于操作 fckeditor的朋友,有所幫助。其實我們用插件的方法制作也是不錯的。功能可以更強。
插入:
復制代碼 代碼如下:

oEditor.FCKSelection.GetSelectedElement();
oEditor.FCK.InsertHtml("<br />");


復制代碼 代碼如下:

FCKCommands.RegisterCommand('htmlcode',new FCKDialogCommand( 'htmlcode', FCKLang.htmlcodeBtn, FCKPlugins.Items['htmlcode'].Path + 'fck_htmlcode.html', 500, 420 ) ) ;
var ohtmlcode=new FCKToolbarButton('htmlcode',FCKLang.htmlcodeBtn);
ohtmlcode.IconPath=FCKPlugins.Items['htmlcode'].Path+'htmlcode.GIF';
FCKToolbarItems.RegisterItem('htmlcode',ohtmlcode);

//創(chuàng)建用于所htmlcode操作的對象
var FCKhtmlcode = new Object() ;

// 這個添加的方法將在彈出窗口點擊ok按鈕時被調(diào)用。
// 該方法將會接收從對話框中傳來的值。

FCKhtmlcode.Add = function(strtemp,str)
{
FCK.InsertHtml("["+str+"]<br>"+strtemp+"<br>[/"+str+"]") ;
}

相關(guān)文章

最新評論