手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >javascript fckeditor编辑器取值与赋值实现代码
javascript fckeditor编辑器取值与赋值实现代码
摘要:获取编辑器中HTML内容复制代码代码如下:functiongetEditorHTMLContents(EditorName){varoEdi...

获取编辑器中HTML内容

复制代码 代码如下:

function getEditorHTMLContents(EditorName)

{

var oEditor = FCKeditorAPI.GetInstance(EditorName);

return(oEditor.GetXHTML(true));

}

获取编辑器中文字内容

复制代码 代码如下:

function getEditorTextContents(EditorName)

{

var oEditor = FCKeditorAPI.GetInstance(EditorName);

return(oEditor.EditorDocument.body.innerText);

}

设置编辑器中内容

复制代码 代码如下:

function SetEditorContents(EditorName, ContentStr)

{

var oEditor = FCKeditorAPI.GetInstance(EditorName) ;

oEditor.SetHTML(ContentStr) ;

}

FCKeditor 插件开发

【javascript fckeditor编辑器取值与赋值实现代码】相关文章:

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

dedecms ckeditor编辑器添加链接默认新窗口打开的修改方法

autogrow 让FCKeditor高度随内容增加的插件

百度UEditor编辑器使用教程与使用方法(图文)

宝丽通实现连续播放实现代码

jsp Ewebeditor使用说明

dedecms5.5 最新版ckeditor编辑器整合教程

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

kindSoft在线网页编辑器简单的配置参数介绍

javascript 在线文本编辑器实现代码

精品推荐
分类导航