手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >fckeditor 常用函数
fckeditor 常用函数
摘要:插入:复制代码代码如下:oEditor.FCKSelection.GetSelectedElement();oEditor.FCK.Inse...

插入:

复制代码 代码如下:

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

}

【fckeditor 常用函数】相关文章:

fckeditor在ie9中无法弹出对话框的解决方法(弹出层兼容问题)

FCKeditor的几点修改小结

jsp Ewebeditor使用说明

fckeditor常用Js,获取fckeditor内容,统计fckeditor字数,向fckeditor写入指定代码

FCKeditor ASP.NET 上传附件研究

FCKeditor添加自定义按钮的方法

jsp fckeditor 上传中文图片乱码问题的解决方法

FCKeditor2.3 For PHP 详细整理的使用参考

asp.net FCKeditor 2.6.3 配置说明

fckeditor 代码语法高亮

精品推荐
分类导航