thinkphp5集成Ueditor

1、官网下载ueditor地址:

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

下载是UTF-8:
thinkphp5集成Ueditor_第1张图片

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

thinkphp5集成Ueditor_第2张图片

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_第3张图片

你可能感兴趣的:(后端,前端,ueditor)