整理一下项目中一些知识:富文本编辑器
来源:互联网 发布:div into python 编辑:程序博客网 时间:2024/05/21 17:07
我项目中用的富文本编辑器是:ueditor,下面是用法:
首先,要引入框架的一些文件 <!-- 配置文件 -->
<!-- 配置文件 --> <script type="text/javascript" src="ueditor.config.js"></script> <!-- 编辑器源码文件 --> <script type="text/javascript" src="ueditor.all.js"></script>第二步:在页面设置一块需要实例化的区域
<body> <!-- 加载编辑器的容器 --> <script id="container" name="content" type="text/plain"> 这里写你的初始化内容 </script></body>第三步:实例化这块区域
<!-- 实例化编辑器 --> <script type="text/javascript"> var ue = UE.getEditor('container'); </script>
这样效果就出来了
至于获取富文本编辑器中的内容可以用下面的方法:
<!-- 实例化编辑器 --> <script type="text/javascript"> var content1 = ue.getContent();//获取编辑器html内容 var content2 = ue.getContentTxt();//获取编辑器纯文本内容 </script>1 0
- 整理一下项目中一些知识:富文本编辑器
- [J2EE]jsp项目中使用UEditor富文本编辑器
- WEB项目中使用UEditor(富文本编辑器)
- [J2EE]jsp项目中使用UEditor富文本编辑器
- WEB项目中使用UEditor(富文本编辑器)
- 在WEB API项目中使用KindEditor富文本编辑器
- vue2.0项目中使用Ueditor富文本编辑器示例
- 文本编辑器使用方法[J2EE]jsp项目中使用UEditor富文本编辑器
- 富文本编辑器中的一些问题
- Flask项目集成富文本编辑器CKeditor
- Flask项目集成富文本编辑器XHEditor
- Flask项目集成富文本编辑器UEditor
- Flask项目集成富文本编辑器UEditor
- django 中集成 富文本编辑器
- ThinkPHP中使用富文本编辑器
- Django项目中集成富文本编辑器的通用方法,适合KindEditor,xhEditor,NicEditor,wymeditor等
- Django项目中集成富文本编辑器的通用方法,适合KindEditor,xhEditor,NicEditor,wymeditor等 .
- Django项目中集成富文本编辑器的通用方法,适合KindEditor,xhEditor,NicEditor,wymeditor等
- hdu 5620
- 这些年--这些Android
- 老罗和老罗的9小时专访,11句话概括中心思想!
- c++第四次实验(作业)
- <mvc:annotation-driven/> <context:annotation-config/> <context:component-scan>
- 整理一下项目中一些知识:富文本编辑器
- 【算法】程序猿不写代码是不对的40
- temp
- mybatis如何获取oracle新插入数据记录的主键?
- FPGA经验分享——时序收敛之路
- ubuntu下软件安装
- QT文件路径问题
- 对称的二叉树
- Ubuntu让Mosquitto支持Websocket