读取CKEditor的值(包括纯文本)
来源:互联网 发布:网络综艺 传统电视剧 编辑:程序博客网 时间:2024/05/22 12:52
1、获取CKEditor被选中的内容
var mySelection = CKEDITOR.instances.ckStem.getSelection();
if (CKEDITOR.env.ie) {
mySelection.unlock(true);
data = mySelection.getNative().createRange().text;
} else {
data = mySelection.getNative();
}
2、获取CKEditor纯文本
var stemTxt=CKEDITOR.instances.CKEditor1.document.getBody().getText(); //取得纯文本
3、获取CKEditor带HTML标签的文本
var stem = CKEDITOR.instances.CKEditor1.getData();
var mySelection = CKEDITOR.instances.ckStem.getSelection();
if (CKEDITOR.env.ie) {
mySelection.unlock(true);
data = mySelection.getNative().createRange().text;
} else {
data = mySelection.getNative();
}
2、获取CKEditor纯文本
var stemTxt=CKEDITOR.instances.CKEditor1.document.getBody().getText(); //取得纯文本
3、获取CKEditor带HTML标签的文本
var stem = CKEDITOR.instances.CKEditor1.getData();
- 读取CKEditor的值(包括纯文本)
- 读取CKEditor的值(包括纯文本)
- 『实践』获取CKEditor的html文本、纯文本、被选中的内容及赋值
- js获取文本编译器CKEditor的值
- 纯文本的威力
- Matlab读取纯文本光谱文件
- [IO]——纯文本读取
- 很棒的富文本编辑器CKEditor
- 在线网页文本编辑器ckeditor的使用
- 富文本编辑器ckeditor的使用
- ckeditor富文本编辑器的使用
- Ckeditor一种很方便的文本编辑器
- 富文本编辑器 CKeditor 的使用
- 前端富文本编辑器ckeditor的使用
- 页面文本编辑器 ckeditor的使用
- 富文本编辑器CKEditor的使用
- CKeditor富文本编辑器的使用
- python网络爬虫文档读取-纯文本读取
- shell脚本学习入门
- 使用虚拟机的问题
- 给虚拟机追加移动硬盘
- linux命令提示Unable to access jarfile IndexServer.jar
- 字符设备的注册与操作
- 读取CKEditor的值(包括纯文本)
- VirtualBox从USB设备(PE)启动图文教程
- 累了,就看看
- tomcat启动服务运行servlet
- WEB系统启动时加载Log4j的配置文件
- tomcat配置数据源
- 显示JSP之前执行servlet(过滤器)
- 黑马程序员---多线程interrupt方法和wait notify方法(原创)
- Svn 忽略 某个文件夹