码迷,mamicode.com
首页 > Web开发 > 详细

thinkphp5.0引入百度编辑器

时间:2018-01-23 18:16:22      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:百度编辑器   content   script   百度   ext   lan   src   strong   type   

1.首先在百度下载百度编辑器
2.下载后一次把ueditor.config.js,ueditor.all.js,zh-cn.js这个三个js引入。
<script type="text/javascript"src="STATIC/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="STATIC/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="STATIC/ueditor/lang/zh-cn/zh-cn.js"></script>
3.在需要插入编辑器的地方插入:
<script id="editor" type="text/plain" name="acontent" ></script>
这样编辑器就穿插进来了。

thinkphp5.0引入百度编辑器

标签:百度编辑器   content   script   百度   ext   lan   src   strong   type   

原文地址:http://blog.51cto.com/13579724/2064319

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!