当前位置 博文首页 > fckeditor 常用函数

    fckeditor 常用函数

    作者:admin 时间:2021-09-02 19:04

    插入:
    复制代码 代码如下:

    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+"]") ;
    }

    jsjbwy
下一篇:没有了