zoukankan      html  css  js  c++  java
  • 008-副文本编辑器UEditor

     1 <!DOCTYPE HTML>
     2 <html lang="en-US">
     3 
     4 <head>
     5     <meta charset="UTF-8">
     6     <title>ueditor demo</title>
     7 </head>
     8 
     9 <body>
    10     <!-- 加载编辑器的容器 -->
    11     <script id="container" name="content" type="text/plain">
    12         这里写你的初始化内容
    13     </script>
    14     <!-- 配置文件 -->
    15     <script type="text/javascript" src="ueditor.config.js"></script>
    16     <!-- 编辑器源码文件 -->
    17     <script type="text/javascript" src="ueditor.all.js"></script>
    18     <!-- 实例化编辑器 -->
    19     <script type="text/javascript">
    20         var ue = UE.getEditor('container');
    21     </script>
    22 </body>
    23 
    24 </html>

    UMEditor

    注意1:将上传文件类设置为“内容” /js/net/Uploader.cs 右键 属性 生成操作 内容
    注意2:请求内容中包含html,则禁用验证
    在web.config中加入httpRuntime requestValidationMode="2.0"
    在Page指令中加入ValidateRequest="false"
    注意3:设置最大高度 max-height: 240px

    标题栏增删

    /js/net/umeditor.config.js

    toolbar:[……]

  • 相关阅读:
    实参和形参
    location对象
    区别 apply,call
    窗体之间的交互(window.opener)
    我的升级脚本总结
    Create elements
    history 对象
    函数参数的属性:callee
    发布app store流程
    【转】如何生成静态页面的五种方案
  • 原文地址:https://www.cnblogs.com/ninghongkun/p/6284152.html
Copyright © 2011-2022 走看看