首页前端开发其他前端知识fckeditor 常用函数

fckeditor 常用函数

时间2024-02-10 10:01:03发布访客分类其他前端知识浏览400
导读:收集整理的这篇文章主要介绍了fckeditor 常用函数,觉得挺不错的,现在分享给大家,也给大家做个参考。 插入: 复制代码 代码如下:oEdITor.fcKSelection.GetS...
收集整理的这篇文章主要介绍了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+"]") ;
}

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!


若转载请注明出处: fckeditor 常用函数
本文地址: https://pptw.com/jishu/608212.html
fckeditor 插件开发参考文档 ASP下使用FCKeditor在线编辑器的方法

游客 回复需填写必要信息