网络编程
位置:首页>> 网络编程>> 网络编程>> fckeditor 常用函数

fckeditor 常用函数

  发布时间:2023-01-25 15:47:11 

标签: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);

//创建用于所htmlcode操作的对象
var FCKhtmlcode = new Object() ;

// 这个添加的方法将在弹出窗口点击ok按钮时被调用。
// 该方法将会接收从对话框中传来的值。

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

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com