zoukankan      html  css  js  c++  java
  • 富文本编辑器

    1. 下载插件

    http://ueditor.baidu.com/website/download.html

    本人下载 ueditor1_4_3_3-utf8-jsp 版本。

    2. 页面添加加载代码:

    <!-- 加载编辑器的容器 -->
    <script id="container" name="bugDesc" type="text/plain" th:text="${bug.bugDesc}">
    -- bug的详细描述 --
    </script>
    <!-- 配置文件 -->
    <script type="text/javascript" th:src="@{/static/ueditor1_4_3_3-utf8-jsp/utf8-jsp/ueditor.config.js}"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" th:src="@{/static/ueditor1_4_3_3-utf8-jsp/utf8-jsp/ueditor.all.js}"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
    var ue = UE.getEditor('container',{
    autoHight:false
    });
    </script>

    详细信息查看文档:http://fex.baidu.com/ueditor/ 

  • 相关阅读:
    老陈与小石头运算代码
    第五次作业
    老陈与小石头
    简易四则运算
    四则运算
    对git的认识
    第一次作业
    arcgis-tomcat-cors
    jquery deferred promise
    springloaded hot deploy
  • 原文地址:https://www.cnblogs.com/wangzhaoshuang/p/8458839.html
Copyright © 2011-2022 走看看