手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >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 常用函数】相关文章:

php下FCKeditor2.6.5网页编辑器的使用方法

Fckeditor编辑器内容长度限制统计实现方法

CKEditor 附插入代码的插件

UEditor 编辑器跨域上传解决方法

FCKeditorAPI 手册 js操作获取等

FCKeditor 编辑器插入代码功能实现步骤

ckeditor的使用和配置方法分享

fckeditor php上传文件重命名的设置

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

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

精品推荐
分类导航