thinkphp5集成Ueditor

1、官网下载ueditor地址:

https://ueditor.baidu.com/website/download.html#ueditor

下载是UTF-8:
thinkphp5集成Ueditor

2、下载完后解压出来重名为ueditor,再复制到public下方

thinkphp5集成Ueditor

3、在view层测试代码
<!-- 加载编辑器的容器 -->
        <script id="container" name="content" type="text/plain">

        </script>
        <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
        <script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
        <script>
            var ue = UE.getEditor('container');

        </script>
4、显示结果如下:

thinkphp5集成Ueditor