php引入富文本ueditor编辑器
php引入富文本ueditor编辑器
富文本php版本下载地址:
https://github.com/fex-team/ueditor/releases/download/v1.4.3.3/ueditor1_4_3_3-utf8-php.zip
textarea载体,注意id和下面实例化要一致。
<textarea id="content" name="content" ></textarea>
页面JS文件
<script src="/static/assets/vender/ueditor/ueditor.config.js"></script> <script src="/static/assets/vender/ueditor/ueditor.all.min.js"> </script> <script> var ue = UE.getEditor('content'); </script>
修改配置项写法如下:
修改图片上传的路径:
上一篇:C语言变量的介绍
下一篇:php数据类型的转换 自动&强制