zoukankan      html  css  js  c++  java
  • 百度编辑器的调用

    百度编辑器官网:http://ueditor.baidu.com/website/

    一、百度编辑器在调用时要注意,一定要是ueditor.config.js 在前,否则就会加载不出编辑器

    <!DOCTYPE HTML>
    <html lang="en-US">
    
    <head>
        <meta charset="UTF-8">
        <title>ueditor demo</title>
    </head>
    
    <body>
        <!-- 加载编辑器的容器 -->
        <script id="container" name="content" type="text/plain">
            这里写你的初始化内容
        </script>
        <!-- 配置文件 -->
        <script type="text/javascript" src="ueditor.config.js"></script>
        <!-- 编辑器源码文件 -->
        <script type="text/javascript" src="ueditor.all.js"></script>
        <!-- 实例化编辑器 -->
        <script type="text/javascript">
            var ue = UE.getEditor('container');
        </script>
    </body>
    
    </html>

    二、编辑器的上传文件配置在config.json文件里。

    三、上传文件,比如上传图片后,图片不能预览,要查看下图片的路径,编辑器默认图片预览地址是在根目录下的ueditor下,如果没有把引用编辑器的文件放在ueditor文件夹下,则需要更改配置文件。

  • 相关阅读:
    android.animation(6)
    android.animation(5)
    android.animation(4)
    android.animation(3)
    android.animation(2)
    android.animation(1)
    android.view.animation(2)
    php热身2:CRUD with Ajax
    PHP热身
    Android热身:通过网络获取资源并更新UI组件
  • 原文地址:https://www.cnblogs.com/dongh/p/6667621.html
Copyright © 2011-2022 走看看