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

fckeditor 常用函數(shù)

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

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


復(fù)制代碼 代碼如下:

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操作的對(duì)象
var FCKhtmlcode = new Object() ;

// 這個(gè)添加的方法將在彈出窗口點(diǎn)擊ok按鈕時(shí)被調(diào)用。
// 該方法將會(huì)接收從對(duì)話(huà)框中傳來(lái)的值。

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

相關(guān)文章

最新評(píng)論