JS获取FckEditor的值
2017-07-12 17:56
295 查看
不需要在页面引用任何额外的JS文件
//获取编辑器中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) ; }
相关文章推荐
- js获取fckeditor表单内容
- fckeditor编辑器之js客户端获取和设置 fckeditor 属性的方法
- FCKeditor 配置使用 JS获取FCKeditor内容
- JS获取FckEditor的值 FCK
- 利用Js获取和修改FCKeditor的值
- JS获取FckEditor的值 FCK
- JS获取FckEditor的值
- fckeditor编辑器之js客户端获取和设置 fckeditor 属性的方法
- Js FCKeditor的值获取和修改
- js中获取Fckeditor的值
- js获取,设置FCKeditor内容
- js中获取和设置Fckeditor的值
- js获取fckeditor表单内容和相关fckeditor设置
- Js FCKeditor的值获取和修改的代码小结
- js获取Fckeditor中的内容值
- 【JS获取与设置】FCKeditor编辑器的值
- FCKeditor的配置使用及JS获取FCKeditor内容
- 使用Js获取和更改FCKeditor编辑器里的内容