手把手教你使用ueditor

ueditor的强大功能就不再一一叙述了,我们的目的就是通过使用php与html实现下面的效果

话不多说,上干货

前言:文件都是基于tp5的

1、引入富文本编辑器 将 ueditor 下的文件引入

1 <script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.config.js"></script>
2 <script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.all.min.js"> </script>

 

2、需要在js中实例化编辑器

var ue = UE.getEditor('editor');

 

3、具体的编辑器功能看 ueditor.html

为了方便查看与使用,请前往github下载所需文件

 

over!over!over!

 

posted @ 2019-03-23 16:45  为牧  阅读(527)  评论(0编辑  收藏  举报