fckeditor 常用函數(shù)
更新時(shí)間:2009年06月19日 23:09:22 作者:
對(duì)于操作 fckeditor的朋友,有所幫助。其實(shí)我們用插件的方法制作也是不錯(cuò)的。功能可以更強(qiáng)。
插入:
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操作的對(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+"]") ;
}
復(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)文章
UEditor 默認(rèn)字體和字號(hào)的修改方法
這篇文章主要介紹了UEditor 默認(rèn)字體和字號(hào)的修改方法,需要的朋友可以參考下2017-03-03FckEditor 上傳圖片后圖片變小了!問(wèn)題解決
我用fckeditor 上傳圖片時(shí),只要圖片一大,上傳到服務(wù)器后就變小了,而且圖片顏色也失真了。2009-07-07配置fckeditor 實(shí)現(xiàn)圖片的上傳
配置fckeditor 實(shí)現(xiàn)圖片的上傳2009-11-11常用的HTML富文本編譯器UEditor、CKEditor、TinyMCE、HTMLArea、eWebEditor、Ki
這篇文章主要介紹了常用的HTML富文本編譯器UEditor、CKEditor、TinyMCE、HTMLArea、eWebEditor、KindEditor簡(jiǎn)介,需要的朋友可以參考下2017-03-03PHP中CKEditor和CKFinder配置問(wèn)題小結(jié)
PHP中CKEditor和CKFinder配置問(wèn)題小結(jié),使用CKEditor和CKFinder編輯器的朋友可以參考下2012-03-03Windows Live Writer 實(shí)現(xiàn)代碼高亮
有時(shí)會(huì)包含大量代碼,如果能在文章中高亮顯示代碼文章的可讀性肯定會(huì)好很多。2009-05-05快速解決百度編譯器json報(bào)錯(cuò)的問(wèn)題
下面小編就為大家?guī)?lái)一篇快速解決百度編譯器json報(bào)錯(cuò)的問(wèn)題。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-08-08