javascript fckeditor编辑器取值与赋值实现代码

2023-12-05 0 269

获取编辑器中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 插件开发

您可能感兴趣的文章:

  • JS操作Fckeditor的一些常用方法(获取、插入等)
  • CKEditor无法验证的解决方案(js验证+jQuery Validate验证)
  • javascript获取ckeditor编辑器的值(实现代码)
  • FCKeditorAPI 手册 js操作获取等
  • fckeditor常用Js,获取fckeditor内容,统计fckeditor字数,向fckeditor写入指定代码
  • FCKEditor常用Js代码,获取FCK内容,统计FCK字数,向FCK写入指定代码
  • FCKeditor提供了一个完整的JavaScript API
  • JavaScript 使用Ckeditor+Ckfinder文件上传案例详解

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 网页编辑器 javascript fckeditor编辑器取值与赋值实现代码 https://www.u-9.cn/biancheng/bianji/97292.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务