• php随笔9-thinkphp OA系统 集成UEditor


    版本信息:thinkphp 3.1.3 full     UEditor 1.4.3.1 utf8-php

    1.将EUditor放在项目public目录下。

    2.在指定页面加载编辑器

        <!-- 加载编辑器的容器 -->
        <script id="container" name="content" type="text/plain">
            //这里写你的初始化内容
        </script>
        <!-- 配置文件 -->
        <script type="text/javascript" src="/app/public/ueditor/ueditor.config.js"></script>
        <!-- 编辑器源码文件 -->
        <script type="text/javascript" src="/app/public/ueditor/ueditor.all.js"></script>
        <!-- 实例化编辑器 -->
        <script type="text/javascript">
            var ue = UE.getEditor('contents');
        </script>

    3.HTML

    <textarea  name="message" id="contents"  style="background-color:#CDFF9A;height:200px;500px;resize:none;" ></textarea>

    效果:

  • 相关阅读:
    linux 硬件信息
    docker note
    Shell cmd set note
    mysql management note
    scp noneed passwd
    update kernel
    数据包处理过程
    tcp/ip分片
    sockopt note
    Python note
  • 原文地址:https://www.cnblogs.com/GaoAnLee/p/4964025.html
Copyright © 2020-2023  润新知