@lingxiteam/lcdp-ueditor-react 1.0.2 → 1.0.3-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/LcdpUeditor.d.ts +4 -0
- package/es/LcdpUeditor.js +45 -8
- package/es/tools/UeditorResourceLoader.d.ts +1 -1
- package/es/tools/UeditorResourceLoader.js +18 -7
- package/es/tools/filterHtmlNode.js +7 -2
- package/lib/LcdpUeditor.d.ts +4 -0
- package/lib/LcdpUeditor.js +35 -10
- package/lib/tools/UeditorResourceLoader.d.ts +1 -1
- package/lib/tools/UeditorResourceLoader.js +15 -7
- package/lib/tools/filterHtmlNode.js +8 -4
- package/package.json +1 -1
- package/ueditor-resource/dialogs/anchor/anchor.html +1 -1
- package/ueditor-resource/dialogs/attachment/attachment.css +2 -715
- package/ueditor-resource/dialogs/attachment/attachment.html +6 -6
- package/ueditor-resource/dialogs/attachment/attachment.js +2 -803
- package/ueditor-resource/dialogs/audio/audio.css +2 -878
- package/ueditor-resource/dialogs/audio/audio.js +2 -815
- package/ueditor-resource/dialogs/background/background.css +2 -192
- package/ueditor-resource/dialogs/background/background.html +3 -3
- package/ueditor-resource/dialogs/background/background.js +2 -370
- package/ueditor-resource/dialogs/contentimport/contentimport.html +3 -3
- package/ueditor-resource/dialogs/contentimport/contentimport.js +2 -91
- package/ueditor-resource/dialogs/emotion/emotion.css +2 -128
- package/ueditor-resource/dialogs/emotion/emotion.html +3 -3
- package/ueditor-resource/dialogs/emotion/emotion.js +2 -186
- package/ueditor-resource/dialogs/formula/formula.html +4 -4
- package/ueditor-resource/dialogs/formula/formula.js +2 -147
- package/ueditor-resource/dialogs/help/help.css +2 -36
- package/ueditor-resource/dialogs/help/help.html +3 -3
- package/ueditor-resource/dialogs/help/help.js +2 -57
- package/ueditor-resource/dialogs/image/image.css +2 -767
- package/ueditor-resource/dialogs/image/image.js +2 -1060
- package/ueditor-resource/dialogs/insertframe/insertframe.html +2 -2
- package/ueditor-resource/dialogs/internal.js +2 -81
- package/ueditor-resource/dialogs/preview/preview.html +2 -2
- package/ueditor-resource/dialogs/scrawl/scrawl.css +2 -323
- package/ueditor-resource/dialogs/scrawl/scrawl.html +3 -3
- package/ueditor-resource/dialogs/scrawl/scrawl.js +2 -682
- package/ueditor-resource/dialogs/searchreplace/searchreplace.html +2 -2
- package/ueditor-resource/dialogs/searchreplace/searchreplace.js +2 -174
- package/ueditor-resource/dialogs/spechars/spechars.html +2 -2
- package/ueditor-resource/dialogs/spechars/spechars.js +2 -86
- package/ueditor-resource/dialogs/table/edittable.css +2 -84
- package/ueditor-resource/dialogs/table/edittable.html +3 -3
- package/ueditor-resource/dialogs/table/edittable.js +2 -241
- package/ueditor-resource/dialogs/table/edittd.html +1 -1
- package/ueditor-resource/dialogs/table/edittip.html +1 -1
- package/ueditor-resource/dialogs/template/config.js +2 -42
- package/ueditor-resource/dialogs/template/template.css +2 -98
- package/ueditor-resource/dialogs/template/template.html +4 -4
- package/ueditor-resource/dialogs/template/template.js +2 -53
- package/ueditor-resource/dialogs/video/video.css +2 -908
- package/ueditor-resource/dialogs/video/video.js +2 -867
- package/ueditor-resource/dialogs/wordimage/wordimage.html +5 -5
- package/ueditor-resource/dialogs/wordimage/wordimage.js +2 -93
- package/ueditor-resource/lang/en/en.js +2 -686
- package/ueditor-resource/lang/zh-cn/zh-cn.js +2 -748
- package/ueditor-resource/lang/zh-tw/zh-tw.js +2 -748
- package/ueditor-resource/plugins/browser-image-compression.js +9 -0
- package/ueditor-resource/themes/default/css/ueditor.css +2 -2148
- package/ueditor-resource/themes/default/dialog.css +2 -16
- package/ueditor-resource/themes/default/dialogbase.css +2 -131
- package/ueditor-resource/themes/iframe.css +2 -62
- package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +4 -3655
- package/ueditor-resource/third-party/SyntaxHighlighter/shCoreDefault.css +3 -1
- package/ueditor-resource/third-party/clipboard/clipboard.js +2 -753
- package/ueditor-resource/third-party/codemirror/codemirror.css +2 -105
- package/ueditor-resource/third-party/codemirror/codemirror.js +4 -3581
- package/ueditor-resource/third-party/jquery-3.5.1.js +4 -2
- package/ueditor-resource/third-party/jquery-3.5.1_1.js +4 -4314
- package/ueditor-resource/third-party/webuploader/webuploader.css +2 -87
- package/ueditor-resource/third-party/webuploader/webuploader.js +5 -4
- package/ueditor-resource/ueditor.all.js +23 -32644
- package/ueditor-resource/ueditor.config.js +2 -655
- package/ueditor-resource/ueditor.parse.js +2 -639
- package/es/LcdpUeditor.d.ts.map +0 -1
- package/es/const.d.ts.map +0 -1
- package/es/index.d.ts.map +0 -1
- package/es/tools/UeditorResourceLoader.d.ts.map +0 -1
- package/es/tools/filterHtmlNode.d.ts.map +0 -1
- package/es/tools/loadScript.d.ts.map +0 -1
- package/es/type.d.ts.map +0 -1
| @@ -1,655 +1,2 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
              | 
| 3 | 
            -
             * 可以在这里配置整个编辑器的特性
         | 
| 4 | 
            -
             */
         | 
| 5 | 
            -
            /**************************提示********************************
         | 
| 6 | 
            -
             * 所有被注释的配置项均为UEditor默认值。
         | 
| 7 | 
            -
             * 修改默认配置请首先确保已经完全明确该参数的真实用途。
         | 
| 8 | 
            -
             * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
         | 
| 9 | 
            -
             * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
         | 
| 10 | 
            -
             **************************提示********************************/
         | 
| 11 | 
            -
             | 
| 12 | 
            -
            (function () {
         | 
| 13 | 
            -
                /**
         | 
| 14 | 
            -
                 * 编辑器资源文件根路径。它所表示的含义是:以编辑器实例化页面为当前路径,指向编辑器资源文件(即dialog等文件夹)的路径。
         | 
| 15 | 
            -
                 * 鉴于很多同学在使用编辑器的时候出现的种种路径问题,此处强烈建议大家使用"相对于网站根目录的相对路径"进行配置。
         | 
| 16 | 
            -
                 * "相对于网站根目录的相对路径"也就是以斜杠开头的形如"/myProject/ueditor/"这样的路径。
         | 
| 17 | 
            -
                 * 如果站点中有多个不在同一层级的页面需要实例化编辑器,且引用了同一UEditor的时候,此处的URL可能不适用于每个页面的编辑器。
         | 
| 18 | 
            -
                 * 因此,UEditor提供了针对不同页面的编辑器可单独配置的根路径,具体来说,在需要实例化编辑器的页面最顶部写上如下代码即可。当然,需要令此处的URL等于对应的配置。
         | 
| 19 | 
            -
                 * window.UEDITOR_HOME_URL = "/xxxx/xxxx/";
         | 
| 20 | 
            -
                 */
         | 
| 21 | 
            -
                var URL, CORS_URL;
         | 
| 22 | 
            -
                if (window.UEDITOR_HOME_URL) {
         | 
| 23 | 
            -
                    URL = window.UEDITOR_HOME_URL;
         | 
| 24 | 
            -
                } else if (window.__msCDN) {
         | 
| 25 | 
            -
                    URL = window.__msCDN + 'asset/vendor/ueditor/';
         | 
| 26 | 
            -
                } else if (window.__msRoot) {
         | 
| 27 | 
            -
                    URL = window.__msRoot + 'asset/vendor/ueditor/';
         | 
| 28 | 
            -
                } else {
         | 
| 29 | 
            -
                    URL = getUEBasePath();
         | 
| 30 | 
            -
                }
         | 
| 31 | 
            -
                if (window.UEDITOR_CORS_URL) {
         | 
| 32 | 
            -
                    CORS_URL = window.UEDITOR_CORS_URL;
         | 
| 33 | 
            -
                } else if (window.__msRoot) {
         | 
| 34 | 
            -
                    CORS_URL = window.__msRoot + 'asset/vendor/ueditor/';
         | 
| 35 | 
            -
                } else if (window.UEDITOR_HOME_URL) {
         | 
| 36 | 
            -
                    CORS_URL = window.UEDITOR_HOME_URL;
         | 
| 37 | 
            -
                } else {
         | 
| 38 | 
            -
                    CORS_URL = getUEBasePath();
         | 
| 39 | 
            -
                }
         | 
| 40 | 
            -
             | 
| 41 | 
            -
                /**
         | 
| 42 | 
            -
                 * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
         | 
| 43 | 
            -
                 */
         | 
| 44 | 
            -
                window.UEDITOR_CONFIG = {
         | 
| 45 | 
            -
             | 
| 46 | 
            -
                    // 为编辑器实例添加一个路径,这个不能被注释
         | 
| 47 | 
            -
                    UEDITOR_HOME_URL: URL,
         | 
| 48 | 
            -
                    // 需要能跨域的静态资源请求,主要用户弹窗页面等静态资源
         | 
| 49 | 
            -
                    UEDITOR_CORS_URL: CORS_URL,
         | 
| 50 | 
            -
             | 
| 51 | 
            -
                    // 是否开启Debug模式
         | 
| 52 | 
            -
                    debug: false,
         | 
| 53 | 
            -
             | 
| 54 | 
            -
                    // 服务器统一请求接口路径
         | 
| 55 | 
            -
                    serverUrl: "/ueditor-plus/_demo_server/handle.php",
         | 
| 56 | 
            -
                    // 服务器统一请求头信息,会在所有请求中带上该信息
         | 
| 57 | 
            -
                    serverHeaders: {
         | 
| 58 | 
            -
                    },
         | 
| 59 | 
            -
             | 
| 60 | 
            -
                    //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义
         | 
| 61 | 
            -
                    toolbars: [
         | 
| 62 | 
            -
                        [
         | 
| 63 | 
            -
                            "fullscreen",   // 全屏
         | 
| 64 | 
            -
                            "source",       // 源代码
         | 
| 65 | 
            -
                            "|",
         | 
| 66 | 
            -
                            "undo",         // 撤销
         | 
| 67 | 
            -
                            "redo",         // 重做
         | 
| 68 | 
            -
                            "|",
         | 
| 69 | 
            -
                            "bold",         // 加粗
         | 
| 70 | 
            -
                            "italic",       // 斜体
         | 
| 71 | 
            -
                            "underline",    // 下划线
         | 
| 72 | 
            -
                            "fontborder",   // 字符边框
         | 
| 73 | 
            -
                            "strikethrough",// 删除线
         | 
| 74 | 
            -
                            "superscript",  // 上标
         | 
| 75 | 
            -
                            "subscript",    // 下标
         | 
| 76 | 
            -
                            "removeformat", // 清除格式
         | 
| 77 | 
            -
                            "formatmatch",  // 格式刷
         | 
| 78 | 
            -
                            "autotypeset",  // 自动排版
         | 
| 79 | 
            -
                            "blockquote",   // 引用
         | 
| 80 | 
            -
                            "pasteplain",   // 纯文本粘贴模式
         | 
| 81 | 
            -
                            "|",
         | 
| 82 | 
            -
                            "forecolor",    // 字体颜色
         | 
| 83 | 
            -
                            "backcolor",    // 背景色
         | 
| 84 | 
            -
                            "insertorderedlist",   // 有序列表
         | 
| 85 | 
            -
                            "insertunorderedlist", // 无序列表
         | 
| 86 | 
            -
                            "selectall",    // 全选
         | 
| 87 | 
            -
                            "cleardoc",     // 清空文档
         | 
| 88 | 
            -
                            "|",
         | 
| 89 | 
            -
                            "rowspacingtop",// 段前距
         | 
| 90 | 
            -
                            "rowspacingbottom",    // 段后距
         | 
| 91 | 
            -
                            "lineheight",          // 行间距
         | 
| 92 | 
            -
                            "|",
         | 
| 93 | 
            -
                            "customstyle",         // 自定义标题
         | 
| 94 | 
            -
                            "paragraph",           // 段落格式
         | 
| 95 | 
            -
                            "fontfamily",          // 字体
         | 
| 96 | 
            -
                            "fontsize",            // 字号
         | 
| 97 | 
            -
                            "|",
         | 
| 98 | 
            -
                            "directionalityltr",   // 从左向右输入
         | 
| 99 | 
            -
                            "directionalityrtl",   // 从右向左输入
         | 
| 100 | 
            -
                            "indent",              // 首行缩进
         | 
| 101 | 
            -
                            "|",
         | 
| 102 | 
            -
                            "justifyleft",         // 居左对齐
         | 
| 103 | 
            -
                            "justifycenter",       // 居中对齐
         | 
| 104 | 
            -
                            "justifyright",
         | 
| 105 | 
            -
                            "justifyjustify",      // 两端对齐
         | 
| 106 | 
            -
                            "|",
         | 
| 107 | 
            -
                            "touppercase",         // 字母大写
         | 
| 108 | 
            -
                            "tolowercase",         // 字母小写
         | 
| 109 | 
            -
                            "|",
         | 
| 110 | 
            -
                            "link",                // 超链接
         | 
| 111 | 
            -
                            "unlink",              // 取消链接
         | 
| 112 | 
            -
                            "anchor",              // 锚点
         | 
| 113 | 
            -
                            "|",
         | 
| 114 | 
            -
                            "imagenone",           // 图片默认
         | 
| 115 | 
            -
                            "imageleft",           // 图片左浮动
         | 
| 116 | 
            -
                            "imagecenter",         // 图片居中
         | 
| 117 | 
            -
                            "imageright",          // 图片右浮动
         | 
| 118 | 
            -
                            "|",
         | 
| 119 | 
            -
                            "simpleupload",        // 单图上传
         | 
| 120 | 
            -
                            "insertimage",         // 多图上传
         | 
| 121 | 
            -
                            // "emotion",             // 表情
         | 
| 122 | 
            -
                            // "scrawl",              // 涂鸦
         | 
| 123 | 
            -
                            "insertvideo",         // 视频
         | 
| 124 | 
            -
                            "insertaudio",         // 音频
         | 
| 125 | 
            -
                            "attachment",          // 附件
         | 
| 126 | 
            -
                            "insertframe",         // 插入Iframe
         | 
| 127 | 
            -
                            "insertcode",          // 插入代码
         | 
| 128 | 
            -
                            "pagebreak",           // 分页
         | 
| 129 | 
            -
                            // "template",            // 模板
         | 
| 130 | 
            -
                            "background",          // 背景
         | 
| 131 | 
            -
                            // "formula",             // 公式
         | 
| 132 | 
            -
                            "|",
         | 
| 133 | 
            -
                            "horizontal",          // 分隔线
         | 
| 134 | 
            -
                            "date",                // 日期
         | 
| 135 | 
            -
                            "time",                // 时间
         | 
| 136 | 
            -
                            "spechars",            // 特殊字符
         | 
| 137 | 
            -
                            // "wordimage",           // Word图片转存
         | 
| 138 | 
            -
                            "|",
         | 
| 139 | 
            -
                            "inserttable",         // 插入表格
         | 
| 140 | 
            -
                            "deletetable",         // 删除表格
         | 
| 141 | 
            -
                            "insertparagraphbeforetable",     // 表格前插入行
         | 
| 142 | 
            -
                            "insertrow",           // 前插入行
         | 
| 143 | 
            -
                            "deleterow",           // 删除行
         | 
| 144 | 
            -
                            "insertcol",           // 前插入列
         | 
| 145 | 
            -
                            "deletecol",           // 删除列
         | 
| 146 | 
            -
                            "mergecells",          // 合并多个单元格
         | 
| 147 | 
            -
                            "mergeright",          // 右合并单元格
         | 
| 148 | 
            -
                            "mergedown",           // 下合并单元格
         | 
| 149 | 
            -
                            "splittocells",        // 完全拆分单元格
         | 
| 150 | 
            -
                            "splittorows",         // 拆分成行
         | 
| 151 | 
            -
                            "splittocols",         // 拆分成列
         | 
| 152 | 
            -
                            "|",
         | 
| 153 | 
            -
                            "print",               // 打印
         | 
| 154 | 
            -
                            // "preview",             // 预览
         | 
| 155 | 
            -
                            // "searchreplace",       // 查询替换
         | 
| 156 | 
            -
                            // "|",
         | 
| 157 | 
            -
                            // "contentimport",
         | 
| 158 | 
            -
                            // "help",                // 帮助
         | 
| 159 | 
            -
                        ]
         | 
| 160 | 
            -
                    ]
         | 
| 161 | 
            -
             | 
| 162 | 
            -
                    // 自定义工具栏按钮点击,返回 true 表示已经处理点击,会阻止默认事件
         | 
| 163 | 
            -
                    , toolbarCallback: function (cmd, editor) {
         | 
| 164 | 
            -
                        // console.log('toolbarCallback',cmd, editor);
         | 
| 165 | 
            -
                        // switch(cmd){
         | 
| 166 | 
            -
                        //   case 'insertimage':
         | 
| 167 | 
            -
                        //     editor.execCommand('insertHtml', '<p><img src="xxxxx" /></p>');
         | 
| 168 | 
            -
                        //     console.log('toolbarCallback',cmd, editor)
         | 
| 169 | 
            -
                        //     return true;
         | 
| 170 | 
            -
                        //   case 'insertvideo':
         | 
| 171 | 
            -
                        //     editor.execCommand('insertHtml', '<p><iframe src="xxxxx" /></p>');
         | 
| 172 | 
            -
                        //     console.log('toolbarCallback',cmd, editor)
         | 
| 173 | 
            -
                        //     return true;
         | 
| 174 | 
            -
                        //   case 'attachment':
         | 
| 175 | 
            -
                        //     console.log('toolbarCallback',cmd, editor)
         | 
| 176 | 
            -
                        //     editor.execCommand('insertHtml', '<p><a href="xxx.zip">下载文件</a></p>');
         | 
| 177 | 
            -
                        //     return true;
         | 
| 178 | 
            -
                        // }
         | 
| 179 | 
            -
                    }
         | 
| 180 | 
            -
             | 
| 181 | 
            -
                    // 插入图片自定义配置
         | 
| 182 | 
            -
                    , imageConfig: {
         | 
| 183 | 
            -
                        // 禁止本地上传
         | 
| 184 | 
            -
                        disableUpload: true,
         | 
| 185 | 
            -
                        // 禁止在线管理
         | 
| 186 | 
            -
                        disableOnline: true,
         | 
| 187 | 
            -
                       // 自定义选择按钮
         | 
| 188 | 
            -
                       selectCallback: function (editor, cb) {
         | 
| 189 | 
            -
                        var selectCallback = editor.getOpt('selectCallback');
         | 
| 190 | 
            -
                        if (typeof selectCallback === 'function') {
         | 
| 191 | 
            -
                            selectCallback(function(data) {
         | 
| 192 | 
            -
                                cb({
         | 
| 193 | 
            -
                                    path: data.url,
         | 
| 194 | 
            -
                                    name: data.title
         | 
| 195 | 
            -
                                })
         | 
| 196 | 
            -
                            }, 'image');
         | 
| 197 | 
            -
                        }
         | 
| 198 | 
            -
                    }
         | 
| 199 | 
            -
                    }
         | 
| 200 | 
            -
             | 
| 201 | 
            -
                    // 插入视频配置
         | 
| 202 | 
            -
                    , videoConfig: {
         | 
| 203 | 
            -
                        // 禁止本地上传,
         | 
| 204 | 
            -
                        disableUpload: true,
         | 
| 205 | 
            -
                        // 自定义选择按钮
         | 
| 206 | 
            -
                        selectCallback: function (editor, cb) {
         | 
| 207 | 
            -
                            var selectCallback = editor.getOpt('selectCallback');
         | 
| 208 | 
            -
                            if (typeof selectCallback === 'function') {
         | 
| 209 | 
            -
                                selectCallback(function(data) {
         | 
| 210 | 
            -
                                    cb({
         | 
| 211 | 
            -
                                        path: data.url,
         | 
| 212 | 
            -
                                        name: data.title
         | 
| 213 | 
            -
                                    })
         | 
| 214 | 
            -
                                }, 'video');
         | 
| 215 | 
            -
                            }
         | 
| 216 | 
            -
                        }
         | 
| 217 | 
            -
                    }
         | 
| 218 | 
            -
             | 
| 219 | 
            -
                    // 插入音频配置
         | 
| 220 | 
            -
                    , audioConfig: {
         | 
| 221 | 
            -
                        // 禁止本地上传,
         | 
| 222 | 
            -
                        disableUpload: true,
         | 
| 223 | 
            -
                        // 自定义选择按钮
         | 
| 224 | 
            -
                       selectCallback: function (editor, cb) {
         | 
| 225 | 
            -
                        var selectCallback = editor.getOpt('selectCallback');
         | 
| 226 | 
            -
                        if (typeof selectCallback === 'function') {
         | 
| 227 | 
            -
                            selectCallback(function(data) {
         | 
| 228 | 
            -
                                cb({
         | 
| 229 | 
            -
                                    path: data.url,
         | 
| 230 | 
            -
                                    name: data.title
         | 
| 231 | 
            -
                                })
         | 
| 232 | 
            -
                            }, 'audio');
         | 
| 233 | 
            -
                        }
         | 
| 234 | 
            -
                    }
         | 
| 235 | 
            -
                    }
         | 
| 236 | 
            -
             | 
| 237 | 
            -
                    // 公式配置
         | 
| 238 | 
            -
                    , formulaConfig: {
         | 
| 239 | 
            -
                        // 公式渲染链接模板
         | 
| 240 | 
            -
                        imageUrlTemplate: 'https://r.latexeasy.com/image.svg?{}',
         | 
| 241 | 
            -
                        // 编辑器模式 plain live
         | 
| 242 | 
            -
                        editorMode: 'live',
         | 
| 243 | 
            -
                        // 编辑器地址
         | 
| 244 | 
            -
                        editorLiveServer: 'https://latexeasy.com',
         | 
| 245 | 
            -
                    }
         | 
| 246 | 
            -
             | 
| 247 | 
            -
                    // 自动保存
         | 
| 248 | 
            -
                    , autoSaveEnable: true
         | 
| 249 | 
            -
                    // 浏览器初始化时自动恢复上一次的内容
         | 
| 250 | 
            -
                    , autoSaveRestore: false
         | 
| 251 | 
            -
                    // 自动保存Key,为空时根据网址自动计算
         | 
| 252 | 
            -
                    , autoSaveKey: null
         | 
| 253 | 
            -
             | 
| 254 | 
            -
                    //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准
         | 
| 255 | 
            -
                    //,labelMap:{
         | 
| 256 | 
            -
                    //    'anchor':'', 'undo':''
         | 
| 257 | 
            -
                    //}
         | 
| 258 | 
            -
             | 
| 259 | 
            -
                    //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件:
         | 
| 260 | 
            -
                    //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase()
         | 
| 261 | 
            -
                    //,lang:"zh-cn"
         | 
| 262 | 
            -
                    //,langPath:URL +"lang/"
         | 
| 263 | 
            -
             | 
| 264 | 
            -
                    //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件:
         | 
| 265 | 
            -
                    //现有如下皮肤:default
         | 
| 266 | 
            -
                    //,theme:'default'
         | 
| 267 | 
            -
                    //,themePath:URL +"themes/"
         | 
| 268 | 
            -
             | 
| 269 | 
            -
                    //,zIndex : 900     //编辑器层级的基数,默认是900
         | 
| 270 | 
            -
             | 
| 271 | 
            -
                    //针对getAllHtml方法,会在对应的head标签中增加该编码设置。
         | 
| 272 | 
            -
                    //,charset:"utf-8"
         | 
| 273 | 
            -
             | 
| 274 | 
            -
                    //若实例化编辑器的页面手动修改的domain,此处需要设置为true
         | 
| 275 | 
            -
                    //,customDomain:false
         | 
| 276 | 
            -
             | 
| 277 | 
            -
                    // 默认显示编辑器
         | 
| 278 | 
            -
                    //,isShow : true
         | 
| 279 | 
            -
             | 
| 280 | 
            -
                    // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值
         | 
| 281 | 
            -
                    //,textarea:'editorValue'
         | 
| 282 | 
            -
             | 
| 283 | 
            -
                    // 初始化编辑器的内容,也可以通过 textarea/script 给值
         | 
| 284 | 
            -
                    , initialContent: ''
         | 
| 285 | 
            -
             | 
| 286 | 
            -
                    //,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了
         | 
| 287 | 
            -
             | 
| 288 | 
            -
                    // 初始化时,是否让编辑器获得焦点
         | 
| 289 | 
            -
                    , focus: false
         | 
| 290 | 
            -
             | 
| 291 | 
            -
                    // 编辑区自定义样式,如果自定义,最好给 p 标签如下的行高,要不输入中文时,会有跳动感
         | 
| 292 | 
            -
                    , initialStyle: '' // p{line-height:1em}
         | 
| 293 | 
            -
             | 
| 294 | 
            -
                    //,iframeJsUrl: '' //给编辑区域的iframe引入一个js文件
         | 
| 295 | 
            -
                    //,iframeCssUrl: URL + '/themes/iframe.css' //给编辑区域的iframe引入一个css文件
         | 
| 296 | 
            -
                    // 给编辑器引入更多样式文件
         | 
| 297 | 
            -
                    //,iframeCssUrlsAddition: []
         | 
| 298 | 
            -
             | 
| 299 | 
            -
                    // 首行缩进距离,默认是 2em
         | 
| 300 | 
            -
                    , indentValue: '2em'
         | 
| 301 | 
            -
             | 
| 302 | 
            -
                    // 初始化编辑器宽度,默认 1000
         | 
| 303 | 
            -
                    // ,initialFrameWidth:1000
         | 
| 304 | 
            -
                    // 初始化编辑器高度,默认 320
         | 
| 305 | 
            -
                    // ,initialFrameHeight:320
         | 
| 306 | 
            -
             | 
| 307 | 
            -
                    // 编辑器初始化结束后,编辑区域是否是只读的,默认是false
         | 
| 308 | 
            -
                    , readonly: false
         | 
| 309 | 
            -
             | 
| 310 | 
            -
                    // getContent时,是否删除空的inlineElement节点(包括嵌套的情况)
         | 
| 311 | 
            -
                    , autoClearEmptyNode: true
         | 
| 312 | 
            -
             | 
| 313 | 
            -
                    // 启用拖放上传
         | 
| 314 | 
            -
                    //,enableDragUpload: true
         | 
| 315 | 
            -
                    // 启用粘贴上传
         | 
| 316 | 
            -
                    //,enablePasteUpload: true
         | 
| 317 | 
            -
             | 
| 318 | 
            -
                    // 启用图片拉伸缩放
         | 
| 319 | 
            -
                    //,imageScaleEnabled: true
         | 
| 320 | 
            -
             | 
| 321 | 
            -
                    // 是否开启初始化时即全屏,默认关闭
         | 
| 322 | 
            -
                    , fullscreen: false
         | 
| 323 | 
            -
             | 
| 324 | 
            -
                    // 图片操作的浮层开关,默认打开
         | 
| 325 | 
            -
                    //,imagePopup:true
         | 
| 326 | 
            -
             | 
| 327 | 
            -
                    // 自动同步编辑器要提交的数据
         | 
| 328 | 
            -
                    //,autoSyncData:true
         | 
| 329 | 
            -
                    // 是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹
         | 
| 330 | 
            -
                    //,emotionLocalization:false
         | 
| 331 | 
            -
             | 
| 332 | 
            -
                    // 粘贴只保留标签,去除标签所有属性
         | 
| 333 | 
            -
                    //,retainOnlyLabelPasted: false
         | 
| 334 | 
            -
             | 
| 335 | 
            -
                    // 是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
         | 
| 336 | 
            -
                    //,pasteplain:false
         | 
| 337 | 
            -
                    // 纯文本粘贴模式下的过滤规则
         | 
| 338 | 
            -
                    //'filterTxtRules' : function(){
         | 
| 339 | 
            -
                    //    function transP(node){
         | 
| 340 | 
            -
                    //        node.tagName = 'p';
         | 
| 341 | 
            -
                    //        node.setStyle();
         | 
| 342 | 
            -
                    //    }
         | 
| 343 | 
            -
                    //    return {
         | 
| 344 | 
            -
                    //        //直接删除及其字节点内容
         | 
| 345 | 
            -
                    //        '-' : 'script style object iframe embed input select',
         | 
| 346 | 
            -
                    //        'p': {$:{}},
         | 
| 347 | 
            -
                    //        'br':{$:{}},
         | 
| 348 | 
            -
                    //        'div':{'$':{}},
         | 
| 349 | 
            -
                    //        'li':{'$':{}},
         | 
| 350 | 
            -
                    //        'caption':transP,
         | 
| 351 | 
            -
                    //        'th':transP,
         | 
| 352 | 
            -
                    //        'tr':transP,
         | 
| 353 | 
            -
                    //        'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP,
         | 
| 354 | 
            -
                    //        'td':function(node){
         | 
| 355 | 
            -
                    //            //没有内容的td直接删掉
         | 
| 356 | 
            -
                    //            var txt = !!node.innerText();
         | 
| 357 | 
            -
                    //            if(txt){
         | 
| 358 | 
            -
                    //                node.parentNode.insertAfter(UE.uNode.createText('    '),node);
         | 
| 359 | 
            -
                    //            }
         | 
| 360 | 
            -
                    //            node.parentNode.removeChild(node,node.innerText())
         | 
| 361 | 
            -
                    //        }
         | 
| 362 | 
            -
                    //    }
         | 
| 363 | 
            -
                    //}()
         | 
| 364 | 
            -
             | 
| 365 | 
            -
                    // 提交到后台的数据是否包含整个html字符串
         | 
| 366 | 
            -
                    , allHtmlEnabled: false
         | 
| 367 | 
            -
             | 
| 368 | 
            -
                    //有序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准
         | 
| 369 | 
            -
                    //,'insertorderedlist':{
         | 
| 370 | 
            -
                    //     'decimal' : '' ,         //'1,2,3...'
         | 
| 371 | 
            -
                    //     'lower-alpha' : '' ,    // 'a,b,c...'
         | 
| 372 | 
            -
                    //     'lower-roman' : '' ,    //'i,ii,iii...'
         | 
| 373 | 
            -
                    //     'upper-alpha' : '' , lang   //'A,B,C'
         | 
| 374 | 
            -
                    //     'upper-roman' : ''      //'I,II,III...'
         | 
| 375 | 
            -
                    //}
         | 
| 376 | 
            -
             | 
| 377 | 
            -
                    //insertunorderedlist
         | 
| 378 | 
            -
                    //无序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准
         | 
| 379 | 
            -
                    //,insertunorderedlist : { //自定的样式
         | 
| 380 | 
            -
                    //    'circle' : '',  // '○ 小圆圈'
         | 
| 381 | 
            -
                    //    'disc' : '',    // '● 小圆点'
         | 
| 382 | 
            -
                    //    'square' : ''   //'■ 小方块'
         | 
| 383 | 
            -
                    //}
         | 
| 384 | 
            -
                    //,listDefaultPaddingLeft : '30'//默认的左边缩进的基数倍
         | 
| 385 | 
            -
                    //,listiconpath : 'http://bs.baidu.com/listicon/'//自定义标号的路径
         | 
| 386 | 
            -
                    //,maxListLevel : 3 //限制可以tab的级数, 设置-1为不限制
         | 
| 387 | 
            -
             | 
| 388 | 
            -
                    //,autoTransWordToList:false  //禁止word中粘贴进来的列表自动变成列表标签
         | 
| 389 | 
            -
             | 
| 390 | 
            -
                    // 字体设置 label 留空支持多语言自动切换,若配置,则以配置值为准
         | 
| 391 | 
            -
                    //,'fontfamily':[
         | 
| 392 | 
            -
                    //    { label:'',name:'songti',val:'宋体,SimSun'},
         | 
| 393 | 
            -
                    //    { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'},
         | 
| 394 | 
            -
                    //    { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'},
         | 
| 395 | 
            -
                    //    { label:'',name:'heiti',val:'黑体, SimHei'},
         | 
| 396 | 
            -
                    //    { label:'',name:'lishu',val:'隶书, SimLi'},
         | 
| 397 | 
            -
                    //    { label:'',name:'andaleMono',val:'andale mono'},
         | 
| 398 | 
            -
                    //    { label:'',name:'arial',val:'arial, helvetica,sans-serif'},
         | 
| 399 | 
            -
                    //    { label:'',name:'arialBlack',val:'arial black,avant garde'},
         | 
| 400 | 
            -
                    //    { label:'',name:'comicSansMs',val:'comic sans ms'},
         | 
| 401 | 
            -
                    //    { label:'',name:'impact',val:'impact,chicago'},
         | 
| 402 | 
            -
                    //    { label:'',name:'timesNewRoman',val:'times new roman'}
         | 
| 403 | 
            -
                    //]
         | 
| 404 | 
            -
             | 
| 405 | 
            -
                    // 字号
         | 
| 406 | 
            -
                    //,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36]
         | 
| 407 | 
            -
             | 
| 408 | 
            -
                    // 段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准
         | 
| 409 | 
            -
                    //,'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''}
         | 
| 410 | 
            -
             | 
| 411 | 
            -
                    // 段间距 值和显示的名字相同
         | 
| 412 | 
            -
                    //,'rowspacingtop':['5', '10', '15', '20', '25']
         | 
| 413 | 
            -
             | 
| 414 | 
            -
                    // 段间距 值和显示的名字相同
         | 
| 415 | 
            -
                    //,'rowspacingbottom':['5', '10', '15', '20', '25']
         | 
| 416 | 
            -
             | 
| 417 | 
            -
                    //行内间距 值和显示的名字相同
         | 
| 418 | 
            -
                    //,'lineheight':['1', '1.5','1.75','2', '3', '4', '5']
         | 
| 419 | 
            -
             | 
| 420 | 
            -
                    // customstyle
         | 
| 421 | 
            -
                    //自定义样式,不支持国际化,此处配置值即可最后显示值
         | 
| 422 | 
            -
                    //block的元素是依据设置段落的逻辑设置的,inline的元素依据BIU的逻辑设置
         | 
| 423 | 
            -
                    //尽量使用一些常用的标签
         | 
| 424 | 
            -
                    //参数说明
         | 
| 425 | 
            -
                    //tag 使用的标签名字
         | 
| 426 | 
            -
                    //label 显示的名字也是用来标识不同类型的标识符,注意这个值每个要不同,
         | 
| 427 | 
            -
                    //style 添加的样式
         | 
| 428 | 
            -
                    //每一个对象就是一个自定义的样式
         | 
| 429 | 
            -
                    //,'customstyle':[
         | 
| 430 | 
            -
                    //    {tag:'h1', name:'tc', label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:center;margin:0 0 20px 0;'},
         | 
| 431 | 
            -
                    //    {tag:'h1', name:'tl',label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;margin:0 0 10px 0;'},
         | 
| 432 | 
            -
                    //    {tag:'span',name:'im', label:'', style:'font-style:italic;font-weight:bold'},
         | 
| 433 | 
            -
                    //    {tag:'span',name:'hi', label:'', style:'font-style:italic;font-weight:bold;color:rgb(51, 153, 204)'}
         | 
| 434 | 
            -
                    //]
         | 
| 435 | 
            -
             | 
| 436 | 
            -
                    // 打开右键菜单功能
         | 
| 437 | 
            -
                    , enableContextMenu: true
         | 
| 438 | 
            -
                    //右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准
         | 
| 439 | 
            -
                    //,contextMenu:[
         | 
| 440 | 
            -
                    //    {
         | 
| 441 | 
            -
                    //        label:'',       //显示的名称
         | 
| 442 | 
            -
                    //        cmdName:'selectall',//执行的command命令,当点击这个右键菜单时
         | 
| 443 | 
            -
                    //        //exec可选,有了exec就会在点击时执行这个function,优先级高于cmdName
         | 
| 444 | 
            -
                    //        exec:function () {
         | 
| 445 | 
            -
                    //            //this是当前编辑器的实例
         | 
| 446 | 
            -
                    //            //this.ui._dialogs['inserttableDialog'].open();
         | 
| 447 | 
            -
                    //        }
         | 
| 448 | 
            -
                    //    }
         | 
| 449 | 
            -
                    //]
         | 
| 450 | 
            -
             | 
| 451 | 
            -
                    //快捷菜单
         | 
| 452 | 
            -
                    , shortcutMenu: [
         | 
| 453 | 
            -
                        // "fontfamily",   // 字体
         | 
| 454 | 
            -
                        // "fontsize",     // 字号
         | 
| 455 | 
            -
                        "bold",         // 加粗
         | 
| 456 | 
            -
                        "italic",       // 斜体
         | 
| 457 | 
            -
                        "underline",    // 下划线
         | 
| 458 | 
            -
                        "strikethrough",// 删除线
         | 
| 459 | 
            -
                        "fontborder",   // 字符边框
         | 
| 460 | 
            -
                        "forecolor",    // 字体颜色
         | 
| 461 | 
            -
                        // "shadowcolor", // 字体阴影
         | 
| 462 | 
            -
                        "backcolor",   // 背景色
         | 
| 463 | 
            -
                        "imagenone",
         | 
| 464 | 
            -
                        "imageleft",
         | 
| 465 | 
            -
                        "imagecenter",
         | 
| 466 | 
            -
                        "imageright",
         | 
| 467 | 
            -
                        "insertimage",
         | 
| 468 | 
            -
                        "formula",
         | 
| 469 | 
            -
                        // "justifyleft",    // 居左对齐
         | 
| 470 | 
            -
                        // "justifycenter",  // 居中对齐
         | 
| 471 | 
            -
                        // "justifyright",   // 居右对齐
         | 
| 472 | 
            -
                        // "justifyjustify", // 两端对齐
         | 
| 473 | 
            -
                        // "textindent",  // 首行缩进
         | 
| 474 | 
            -
                        // "rowspacingtop",     // 段前距
         | 
| 475 | 
            -
                        // "rowspacingbottom",  // 段后距
         | 
| 476 | 
            -
                        // "outpadding",        // 两侧距离
         | 
| 477 | 
            -
                        // "lineheight",           // 行间距
         | 
| 478 | 
            -
                        // "letterspacing" ,    // 字间距
         | 
| 479 | 
            -
                        // "insertorderedlist",    // 有序列表
         | 
| 480 | 
            -
                        // "insertunorderedlist",  // 无序列表
         | 
| 481 | 
            -
                        // "superscript",    // 上标
         | 
| 482 | 
            -
                        // "subscript",      // 下标
         | 
| 483 | 
            -
                        // "link",           // 超链接
         | 
| 484 | 
            -
                        // "unlink",         // 取消链接
         | 
| 485 | 
            -
                        // "touppercase",    // 字母大写
         | 
| 486 | 
            -
                        // "tolowercase"     // 字母小写
         | 
| 487 | 
            -
                    ]
         | 
| 488 | 
            -
             | 
| 489 | 
            -
                    // 是否启用元素路径,默认是显示
         | 
| 490 | 
            -
                    , elementPathEnabled: true
         | 
| 491 | 
            -
                    // 是否开启字数统计
         | 
| 492 | 
            -
                    , wordCount: true
         | 
| 493 | 
            -
                    // 允许的最大字符数
         | 
| 494 | 
            -
                    , maximumWords: 10000
         | 
| 495 | 
            -
                    //字数统计提示,{#count} 代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
         | 
| 496 | 
            -
                    //,wordCountMsg:''   //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符
         | 
| 497 | 
            -
                    //超出字数限制提示  留空支持多语言自动切换,否则按此配置显示
         | 
| 498 | 
            -
                    //,wordOverFlowMsg:''    //<span style="color:red;">你输入的字符个数已经超出最大允许值,服务器可能会拒绝保存!</span>
         | 
| 499 | 
            -
             | 
| 500 | 
            -
                    // 点击tab键时移动的距离,tabSize倍数,tabNode什么字符做为单位
         | 
| 501 | 
            -
                    //,tabSize:4
         | 
| 502 | 
            -
                    //,tabNode:' '
         | 
| 503 | 
            -
             | 
| 504 | 
            -
                    // 清除格式时可以删除的标签
         | 
| 505 | 
            -
                    //,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'
         | 
| 506 | 
            -
                    // 清除格式时可以删除的属性
         | 
| 507 | 
            -
                    //,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign'
         | 
| 508 | 
            -
             | 
| 509 | 
            -
                    // 可以最多撤销退回的次数,默认20
         | 
| 510 | 
            -
                    , maxUndoCount: 20
         | 
| 511 | 
            -
                    // 当输入的字符数超过该值时,保存一次现场
         | 
| 512 | 
            -
                    , maxInputCount: 1
         | 
| 513 | 
            -
             | 
| 514 | 
            -
                    // 是否自动长高,默认true
         | 
| 515 | 
            -
                    , autoHeightEnabled: true
         | 
| 516 | 
            -
             | 
| 517 | 
            -
                    //scaleEnabled
         | 
| 518 | 
            -
                    //是否可以拉伸长高,默认true(当开启时,自动长高失效)
         | 
| 519 | 
            -
                    //,scaleEnabled:false
         | 
| 520 | 
            -
                    //,minFrameWidth:800    //编辑器拖动时最小宽度,默认800
         | 
| 521 | 
            -
                    //,minFrameHeight:220  //编辑器拖动时最小高度,默认220
         | 
| 522 | 
            -
             | 
| 523 | 
            -
                    //autoFloatEnabled
         | 
| 524 | 
            -
                    //是否保持toolbar的位置不动,默认true
         | 
| 525 | 
            -
                    //,autoFloatEnabled:true
         | 
| 526 | 
            -
                    //浮动时工具栏距离浏览器顶部的高度,用于某些具有固定头部的页面
         | 
| 527 | 
            -
                    //,topOffset:30
         | 
| 528 | 
            -
                    //编辑器底部距离工具栏高度(如果参数大于等于编辑器高度,则设置无效)
         | 
| 529 | 
            -
                    //,toolbarTopOffset:400
         | 
| 530 | 
            -
             | 
| 531 | 
            -
                    //设置远程图片是否抓取到本地保存
         | 
| 532 | 
            -
                    , catchRemoteImageEnable: true //设置是否抓取远程图片
         | 
| 533 | 
            -
             | 
| 534 | 
            -
                    //pageBreakTag
         | 
| 535 | 
            -
                    //分页标识符,默认是_ueditor_page_break_tag_
         | 
| 536 | 
            -
                    //,pageBreakTag:'_ueditor_page_break_tag_'
         | 
| 537 | 
            -
             | 
| 538 | 
            -
                    // 自动排版参数
         | 
| 539 | 
            -
                    , autotypeset: {
         | 
| 540 | 
            -
                        // 合并空行
         | 
| 541 | 
            -
                        mergeEmptyline: true,
         | 
| 542 | 
            -
                        // 去掉冗余的class
         | 
| 543 | 
            -
                        removeClass: true,
         | 
| 544 | 
            -
                        // 去掉空行
         | 
| 545 | 
            -
                        removeEmptyline: false,
         | 
| 546 | 
            -
                        // 段落的排版方式,可以是 left,right,center,justify 去掉这个属性表示不执行排版
         | 
| 547 | 
            -
                        textAlign: "left",
         | 
| 548 | 
            -
                        // 图片的浮动方式,独占一行剧中,左右浮动,默认: center,left,right,none 去掉这个属性表示不执行排版
         | 
| 549 | 
            -
                        imageBlockLine: "center",
         | 
| 550 | 
            -
                        // 根据规则过滤没事粘贴进来的内容
         | 
| 551 | 
            -
                        pasteFilter: false,
         | 
| 552 | 
            -
                        // 去掉所有的内嵌字号,使用编辑器默认的字号
         | 
| 553 | 
            -
                        clearFontSize: false,
         | 
| 554 | 
            -
                        // 去掉所有的内嵌字体,使用编辑器默认的字体
         | 
| 555 | 
            -
                        clearFontFamily: false,
         | 
| 556 | 
            -
                        // 去掉空节点
         | 
| 557 | 
            -
                        removeEmptyNode: false,
         | 
| 558 | 
            -
                        // 可以去掉的标签
         | 
| 559 | 
            -
                        removeTagNames: {div: 1},
         | 
| 560 | 
            -
                        // 行首缩进
         | 
| 561 | 
            -
                        indent: false,
         | 
| 562 | 
            -
                        // 行首缩进的大小
         | 
| 563 | 
            -
                        indentValue: "2em",
         | 
| 564 | 
            -
                        // 全角转半角
         | 
| 565 | 
            -
                        bdc2sb: false,
         | 
| 566 | 
            -
                        // 半角转全角
         | 
| 567 | 
            -
                        tobdc: false
         | 
| 568 | 
            -
                    }
         | 
| 569 | 
            -
             | 
| 570 | 
            -
                    //表格是否可以拖拽
         | 
| 571 | 
            -
                    //,tableDragable: true
         | 
| 572 | 
            -
             | 
| 573 | 
            -
                    //sourceEditor
         | 
| 574 | 
            -
                    //源码的查看方式,codemirror 是代码高亮,textarea是文本框,默认是codemirror
         | 
| 575 | 
            -
                    //注意默认codemirror只能在ie8+和非ie中使用
         | 
| 576 | 
            -
                    //,sourceEditor:"codemirror"
         | 
| 577 | 
            -
                    //如果sourceEditor是codemirror,还用配置一下两个参数
         | 
| 578 | 
            -
                    //codeMirrorJsUrl js加载的路径,默认是 URL + "third-party/codemirror/codemirror.js"
         | 
| 579 | 
            -
                    //,codeMirrorJsUrl:URL + "third-party/codemirror/codemirror.js"
         | 
| 580 | 
            -
                    //codeMirrorCssUrl css加载的路径,默认是 URL + "third-party/codemirror/codemirror.css"
         | 
| 581 | 
            -
                    //,codeMirrorCssUrl:URL + "third-party/codemirror/codemirror.css"
         | 
| 582 | 
            -
                    //编辑器初始化完成后是否进入源码模式,默认为否。
         | 
| 583 | 
            -
                    //,sourceEditorFirst:false
         | 
| 584 | 
            -
             | 
| 585 | 
            -
                    //iframeUrlMap
         | 
| 586 | 
            -
                    //dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径
         | 
| 587 | 
            -
                    //,iframeUrlMap:{
         | 
| 588 | 
            -
                    //    'anchor':'~/dialogs/anchor/anchor.html',
         | 
| 589 | 
            -
                    //}
         | 
| 590 | 
            -
             | 
| 591 | 
            -
                    //allowLinkProtocol 允许的链接地址,有这些前缀的链接地址不会自动添加http
         | 
| 592 | 
            -
                    //, allowLinkProtocols: ['http:', 'https:', '#', '/', 'ftp:', 'mailto:', 'tel:', 'git:', 'svn:']
         | 
| 593 | 
            -
             | 
| 594 | 
            -
                    //默认过滤规则相关配置项目
         | 
| 595 | 
            -
                    //,disabledTableInTable:true  //禁止表格嵌套
         | 
| 596 | 
            -
                    // 允许进入编辑器的 div 标签自动变成 p 标签
         | 
| 597 | 
            -
                    , allowDivTransToP: true
         | 
| 598 | 
            -
                    // 默认产出的数据中的color自动从rgb格式变成16进制格式
         | 
| 599 | 
            -
                    , rgb2Hex: true
         | 
| 600 | 
            -
                };
         | 
| 601 | 
            -
             | 
| 602 | 
            -
                function getUEBasePath(docUrl, confUrl) {
         | 
| 603 | 
            -
                    return getBasePath(
         | 
| 604 | 
            -
                        docUrl || self.document.URL || self.location.href,
         | 
| 605 | 
            -
                        confUrl || getConfigFilePath()
         | 
| 606 | 
            -
                    );
         | 
| 607 | 
            -
                }
         | 
| 608 | 
            -
             | 
| 609 | 
            -
                function getConfigFilePath() {
         | 
| 610 | 
            -
                    var configPath = document.getElementsByTagName("script");
         | 
| 611 | 
            -
             | 
| 612 | 
            -
                    return configPath[configPath.length - 1].src;
         | 
| 613 | 
            -
                }
         | 
| 614 | 
            -
             | 
| 615 | 
            -
                function getBasePath(docUrl, confUrl) {
         | 
| 616 | 
            -
                    var basePath = confUrl;
         | 
| 617 | 
            -
             | 
| 618 | 
            -
                    if (/^(\/|\\\\)/.test(confUrl)) {
         | 
| 619 | 
            -
                        basePath =
         | 
| 620 | 
            -
                            /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/, "");
         | 
| 621 | 
            -
                    } else if (!/^[a-z]+:/i.test(confUrl)) {
         | 
| 622 | 
            -
                        docUrl = docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, "");
         | 
| 623 | 
            -
             | 
| 624 | 
            -
                        basePath = docUrl + "" + confUrl;
         | 
| 625 | 
            -
                    }
         | 
| 626 | 
            -
             | 
| 627 | 
            -
                    return optimizationPath(basePath);
         | 
| 628 | 
            -
                }
         | 
| 629 | 
            -
             | 
| 630 | 
            -
                function optimizationPath(path) {
         | 
| 631 | 
            -
                    var protocol = /^[a-z]+:\/\//.exec(path)[0],
         | 
| 632 | 
            -
                        tmp = null,
         | 
| 633 | 
            -
                        res = [];
         | 
| 634 | 
            -
             | 
| 635 | 
            -
                    path = path.replace(protocol, "").split("?")[0].split("#")[0];
         | 
| 636 | 
            -
             | 
| 637 | 
            -
                    path = path.replace(/\\/g, "/").split(/\//);
         | 
| 638 | 
            -
             | 
| 639 | 
            -
                    path[path.length - 1] = "";
         | 
| 640 | 
            -
             | 
| 641 | 
            -
                    while (path.length) {
         | 
| 642 | 
            -
                        if ((tmp = path.shift()) === "..") {
         | 
| 643 | 
            -
                            res.pop();
         | 
| 644 | 
            -
                        } else if (tmp !== ".") {
         | 
| 645 | 
            -
                            res.push(tmp);
         | 
| 646 | 
            -
                        }
         | 
| 647 | 
            -
                    }
         | 
| 648 | 
            -
             | 
| 649 | 
            -
                    return protocol + res.join("/");
         | 
| 650 | 
            -
                }
         | 
| 651 | 
            -
             | 
| 652 | 
            -
                window.UE = {
         | 
| 653 | 
            -
                    getUEBasePath: getUEBasePath
         | 
| 654 | 
            -
                };
         | 
| 655 | 
            -
            })();
         | 
| 1 | 
            +
            /*! UEditorPlus v2.0.0*/
         | 
| 2 | 
            +
            !function(){function getUEBasePath(docUrl,confUrl){return getBasePath(docUrl||self.document.URL||self.location.href,confUrl||getConfigFilePath())}function getConfigFilePath(){var configPath=document.getElementsByTagName("script");return configPath[configPath.length-1].src}function getBasePath(docUrl,confUrl){var basePath=confUrl;return/^(\/|\\\\)/.test(confUrl)?basePath=/^.+?\w(\/|\\\\)/.exec(docUrl)[0]+confUrl.replace(/^(\/|\\\\)/,""):/^[a-z]+:/i.test(confUrl)||(docUrl=docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/,""),basePath=docUrl+""+confUrl),optimizationPath(basePath)}function optimizationPath(path){var protocol=/^[a-z]+:\/\//.exec(path)[0],tmp=null,res=[];for(path=path.replace(protocol,"").split("?")[0].split("#")[0],path=path.replace(/\\/g,"/").split(/\//),path[path.length-1]="";path.length;)".."===(tmp=path.shift())?res.pop():"."!==tmp&&res.push(tmp);return protocol+res.join("/")}var URL,CORS_URL;URL=window.UEDITOR_HOME_URL?window.UEDITOR_HOME_URL:window.__msCDN?window.__msCDN+"asset/vendor/ueditor/":window.__msRoot?window.__msRoot+"asset/vendor/ueditor/":getUEBasePath(),CORS_URL=window.UEDITOR_CORS_URL?window.UEDITOR_CORS_URL:window.__msRoot?window.__msRoot+"asset/vendor/ueditor/":window.UEDITOR_HOME_URL?window.UEDITOR_HOME_URL:getUEBasePath(),window.UEDITOR_CONFIG={UEDITOR_HOME_URL:URL,UEDITOR_CORS_URL:CORS_URL,debug:!1,serverUrl:"/ueditor-plus/_demo_server/handle.php",serverHeaders:{},toolbars:[["fullscreen","source","|","undo","redo","|","bold","italic","underline","fontborder","strikethrough","superscript","subscript","removeformat","formatmatch","autotypeset","blockquote","pasteplain","|","forecolor","backcolor","insertorderedlist","insertunorderedlist","selectall","cleardoc","|","rowspacingtop","rowspacingbottom","lineheight","|","customstyle","paragraph","fontfamily","fontsize","|","directionalityltr","directionalityrtl","indent","|","justifyleft","justifycenter","justifyright","justifyjustify","|","touppercase","tolowercase","|","link","unlink","anchor","|","imagenone","imageleft","imagecenter","imageright","|","simpleupload","insertimage","insertvideo","insertaudio","attachment","insertframe","insertcode","pagebreak","background","|","horizontal","date","time","spechars","|","inserttable","deletetable","insertparagraphbeforetable","insertrow","deleterow","insertcol","deletecol","mergecells","mergeright","mergedown","splittocells","splittorows","splittocols","|","print"]],toolbarCallback:function(cmd,editor){},imageConfig:{disableUpload:!0,disableOnline:!0,selectCallback:function(editor,cb){var selectCallback=editor.getOpt("selectCallback");"function"==typeof selectCallback&&selectCallback(function(data){cb({path:data.url,name:data.title})},"image")}},videoConfig:{disableUpload:!0,selectCallback:function(editor,cb){var selectCallback=editor.getOpt("selectCallback");"function"==typeof selectCallback&&selectCallback(function(data){cb({path:data.url,name:data.title})},"video")}},audioConfig:{disableUpload:!0,selectCallback:function(editor,cb){var selectCallback=editor.getOpt("selectCallback");"function"==typeof selectCallback&&selectCallback(function(data){cb({path:data.url,name:data.title})},"audio")}},formulaConfig:{imageUrlTemplate:"https://r.latexeasy.com/image.svg?{}",editorMode:"live",editorLiveServer:"https://latexeasy.com"},autoSaveEnable:!0,autoSaveRestore:!1,autoSaveKey:null,initialContent:"",focus:!1,initialStyle:"",indentValue:"2em",readonly:!1,autoClearEmptyNode:!0,fullscreen:!1,allHtmlEnabled:!1,enableContextMenu:!0,shortcutMenu:["bold","italic","underline","strikethrough","fontborder","forecolor","backcolor","imagenone","imageleft","imagecenter","imageright","insertimage","formula"],elementPathEnabled:!0,wordCount:!0,maximumWords:1e4,maxUndoCount:20,maxInputCount:1,autoHeightEnabled:!0,catchRemoteImageEnable:!0,autotypeset:{mergeEmptyline:!0,removeClass:!0,removeEmptyline:!1,textAlign:"left",imageBlockLine:"center",pasteFilter:!1,clearFontSize:!1,clearFontFamily:!1,removeEmptyNode:!1,removeTagNames:{div:1},indent:!1,indentValue:"2em",bdc2sb:!1,tobdc:!1},allowDivTransToP:!0,rgb2Hex:!0},window.UE={getUEBasePath:getUEBasePath}}();
         |