@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.19 → 1.0.0-alpha.20
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.js +34 -34
- package/es/const.js +4 -4
- package/es/defaultConfig.json +76 -76
- package/es/tools/UeditorResourceLoader.js +6 -6
- package/es/tools/loadScript.js +3 -3
- package/lib/defaultConfig.json +76 -76
- package/package.json +34 -34
- package/ueditor-resource/dialogs/anchor/anchor.html +62 -62
- package/ueditor-resource/dialogs/attachment/attachment.css +716 -716
- package/ueditor-resource/dialogs/attachment/attachment.html +61 -61
- package/ueditor-resource/dialogs/attachment/attachment.js +803 -803
- package/ueditor-resource/dialogs/audio/audio.css +879 -879
- package/ueditor-resource/dialogs/audio/audio.html +93 -93
- package/ueditor-resource/dialogs/audio/audio.js +815 -815
- package/ueditor-resource/dialogs/background/background.css +193 -193
- package/ueditor-resource/dialogs/background/background.html +59 -59
- package/ueditor-resource/dialogs/background/background.js +370 -370
- package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -176
- package/ueditor-resource/dialogs/contentimport/contentimport.js +91 -91
- package/ueditor-resource/dialogs/emotion/emotion.css +129 -129
- package/ueditor-resource/dialogs/emotion/emotion.html +70 -70
- package/ueditor-resource/dialogs/emotion/emotion.js +186 -186
- package/ueditor-resource/dialogs/formula/formula.html +98 -98
- package/ueditor-resource/dialogs/formula/formula.js +147 -147
- package/ueditor-resource/dialogs/help/help.css +37 -37
- package/ueditor-resource/dialogs/help/help.html +82 -82
- package/ueditor-resource/dialogs/help/help.js +57 -57
- package/ueditor-resource/dialogs/image/image.css +768 -768
- package/ueditor-resource/dialogs/image/image.html +144 -144
- package/ueditor-resource/dialogs/image/image.js +1060 -1060
- package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -135
- package/ueditor-resource/dialogs/internal.js +81 -81
- package/ueditor-resource/dialogs/link/link.html +148 -148
- package/ueditor-resource/dialogs/preview/preview.html +45 -45
- package/ueditor-resource/dialogs/scrawl/scrawl.css +324 -324
- package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -95
- package/ueditor-resource/dialogs/scrawl/scrawl.js +682 -682
- package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -144
- package/ueditor-resource/dialogs/searchreplace/searchreplace.js +174 -174
- package/ueditor-resource/dialogs/spechars/spechars.html +42 -42
- package/ueditor-resource/dialogs/spechars/spechars.js +86 -86
- package/ueditor-resource/dialogs/table/edittable.css +85 -85
- package/ueditor-resource/dialogs/table/edittable.html +69 -69
- package/ueditor-resource/dialogs/table/edittable.js +241 -241
- package/ueditor-resource/dialogs/table/edittd.html +62 -62
- package/ueditor-resource/dialogs/table/edittip.html +33 -33
- package/ueditor-resource/dialogs/template/config.js +42 -42
- package/ueditor-resource/dialogs/template/template.css +99 -99
- package/ueditor-resource/dialogs/template/template.html +26 -26
- package/ueditor-resource/dialogs/template/template.js +53 -53
- package/ueditor-resource/dialogs/video/video.css +909 -909
- package/ueditor-resource/dialogs/video/video.html +114 -114
- package/ueditor-resource/dialogs/video/video.js +867 -867
- package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -221
- package/ueditor-resource/dialogs/wordimage/wordimage.js +93 -93
- package/ueditor-resource/lang/en/en.js +686 -686
- package/ueditor-resource/lang/zh-cn/zh-cn.js +748 -748
- package/ueditor-resource/lang/zh-tw/zh-tw.js +748 -748
- package/ueditor-resource/plugins/demo/demo.js +3 -3
- package/ueditor-resource/themes/default/css/ueditor.css +2148 -2148
- package/ueditor-resource/themes/default/dialog.css +17 -17
- package/ueditor-resource/themes/default/dialogbase.css +132 -132
- package/ueditor-resource/themes/default/exts/ai.svg +12 -12
- package/ueditor-resource/themes/default/exts/apk.svg +12 -12
- package/ueditor-resource/themes/default/exts/chm.svg +12 -12
- package/ueditor-resource/themes/default/exts/css.svg +12 -12
- package/ueditor-resource/themes/default/exts/doc.svg +22 -22
- package/ueditor-resource/themes/default/exts/docx.svg +22 -22
- package/ueditor-resource/themes/default/exts/dwg.svg +16 -16
- package/ueditor-resource/themes/default/exts/folder.svg +3 -3
- package/ueditor-resource/themes/default/exts/gif.svg +14 -14
- package/ueditor-resource/themes/default/exts/html.svg +12 -12
- package/ueditor-resource/themes/default/exts/jpeg.svg +14 -14
- package/ueditor-resource/themes/default/exts/jpg.svg +14 -14
- package/ueditor-resource/themes/default/exts/log.svg +12 -12
- package/ueditor-resource/themes/default/exts/mp3.svg +14 -14
- package/ueditor-resource/themes/default/exts/mp4.svg +12 -12
- package/ueditor-resource/themes/default/exts/pdf.svg +14 -14
- package/ueditor-resource/themes/default/exts/png.svg +14 -14
- package/ueditor-resource/themes/default/exts/ppt.svg +24 -24
- package/ueditor-resource/themes/default/exts/pptx.svg +24 -24
- package/ueditor-resource/themes/default/exts/psd.svg +12 -12
- package/ueditor-resource/themes/default/exts/rar.svg +12 -12
- package/ueditor-resource/themes/default/exts/svg.svg +12 -12
- package/ueditor-resource/themes/default/exts/torrent.svg +14 -14
- package/ueditor-resource/themes/default/exts/txt.svg +14 -14
- package/ueditor-resource/themes/default/exts/unknown.svg +12 -12
- package/ueditor-resource/themes/default/exts/xls.svg +25 -25
- package/ueditor-resource/themes/default/exts/xlsx.svg +25 -25
- package/ueditor-resource/themes/default/exts/zip.svg +12 -12
- package/ueditor-resource/themes/iframe.css +63 -63
- package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +3655 -3655
- package/ueditor-resource/third-party/clipboard/clipboard.js +752 -752
- package/ueditor-resource/third-party/codemirror/codemirror.css +106 -106
- package/ueditor-resource/third-party/codemirror/codemirror.js +3581 -3581
- package/ueditor-resource/third-party/jquery-3.5.1.js +1 -1
- package/ueditor-resource/third-party/jquery-3.5.1_1.js +4314 -4314
- package/ueditor-resource/third-party/webuploader/webuploader.css +88 -88
- package/ueditor-resource/third-party/webuploader/webuploader.js +3 -3
- package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1255 -1255
- package/ueditor-resource/ueditor.all.js +5269 -5269
- package/ueditor-resource/ueditor.config.js +655 -655
- package/ueditor-resource/ueditor.parse.js +13 -13
- package/ueditor-resource/index.html +0 -146
| @@ -1,9 +1,9 @@ | |
| 1 | 
            -
            /*!
         | 
| 2 | 
            -
             * UEditorPlus parse
         | 
| 3 | 
            -
             * version: 2.0.0
         | 
| 4 | 
            -
            */
         | 
| 5 | 
            -
            (function(){
         | 
| 6 | 
            -
             | 
| 1 | 
            +
            /*!
         | 
| 2 | 
            +
             * UEditorPlus parse
         | 
| 3 | 
            +
             * version: 2.0.0
         | 
| 4 | 
            +
            */
         | 
| 5 | 
            +
            (function(){
         | 
| 6 | 
            +
             | 
| 7 7 | 
             
            "use strict";
         | 
| 8 8 |  | 
| 9 9 | 
             
            (function () {
         | 
| @@ -333,7 +333,7 @@ | |
| 333 333 | 
             
                });
         | 
| 334 334 | 
             
              };
         | 
| 335 335 | 
             
            })();
         | 
| 336 | 
            -
             | 
| 336 | 
            +
             | 
| 337 337 | 
             
            "use strict";
         | 
| 338 338 |  | 
| 339 339 | 
             
            UE.parse.register("insertcode", function (utils) {
         | 
| @@ -377,7 +377,7 @@ UE.parse.register("insertcode", function (utils) { | |
| 377 377 | 
             
                }
         | 
| 378 378 | 
             
              }
         | 
| 379 379 | 
             
            });
         | 
| 380 | 
            -
             | 
| 380 | 
            +
             | 
| 381 381 | 
             
            "use strict";
         | 
| 382 382 |  | 
| 383 383 | 
             
            UE.parse.register("table", function (utils) {
         | 
| @@ -529,7 +529,7 @@ UE.parse.register("table", function (utils) { | |
| 529 529 | 
             
                }
         | 
| 530 530 | 
             
              }
         | 
| 531 531 | 
             
            });
         | 
| 532 | 
            -
             | 
| 532 | 
            +
             | 
| 533 533 | 
             
            "use strict";
         | 
| 534 534 |  | 
| 535 535 | 
             
            UE.parse.register("background", function (utils) {
         | 
| @@ -547,7 +547,7 @@ UE.parse.register("background", function (utils) { | |
| 547 547 | 
             
              //追加默认的表格样式
         | 
| 548 548 | 
             
              styles && utils.cssRule("ueditor_background", me.selector + "{" + styles + "}", document);
         | 
| 549 549 | 
             
            });
         | 
| 550 | 
            -
             | 
| 550 | 
            +
             | 
| 551 551 | 
             
            "use strict";
         | 
| 552 552 |  | 
| 553 553 | 
             
            UE.parse.register("list", function (utils) {
         | 
| @@ -634,6 +634,6 @@ UE.parse.register("list", function (utils) { | |
| 634 634 | 
             
                });
         | 
| 635 635 | 
             
              }
         | 
| 636 636 | 
             
            });
         | 
| 637 | 
            -
             | 
| 638 | 
            -
             | 
| 639 | 
            -
            })();
         | 
| 637 | 
            +
             | 
| 638 | 
            +
             | 
| 639 | 
            +
            })();
         | 
| @@ -1,146 +0,0 @@ | |
| 1 | 
            -
            <!doctype html>
         | 
| 2 | 
            -
            <html>
         | 
| 3 | 
            -
            <head>
         | 
| 4 | 
            -
                <title>UEditorPlus 完整演示</title>
         | 
| 5 | 
            -
                <meta name="viewport" content="width=device-width, minimum-scale=0.5, maximum-scale=5, user-scalable=no">
         | 
| 6 | 
            -
                <meta http-equiv="X-UA-Compatible" content="ie=edge">
         | 
| 7 | 
            -
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
         | 
| 8 | 
            -
                <script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
         | 
| 9 | 
            -
                <script type="text/javascript" charset="utf-8" src="ueditor.all.js"></script>
         | 
| 10 | 
            -
                <script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js?8c5d8442"></script>
         | 
| 11 | 
            -
                <script src="./plugins/demo/demo.js"></script>
         | 
| 12 | 
            -
                <script>
         | 
| 13 | 
            -
                    // window.UEDITOR_CONFIG.toolbars[0].push('undo');
         | 
| 14 | 
            -
                </script>
         | 
| 15 | 
            -
                <script>var _hmt = _hmt || [];
         | 
| 16 | 
            -
                (function () {
         | 
| 17 | 
            -
                    var hm = document.createElement("script");
         | 
| 18 | 
            -
                    hm.src = "https://hm.baidu.com/hm.js?f84f35a44b5cc5c0b10c3fabdf0f322b";
         | 
| 19 | 
            -
                    var s = document.getElementsByTagName("script")[0];
         | 
| 20 | 
            -
                    s.parentNode.insertBefore(hm, s);
         | 
| 21 | 
            -
                })();</script>
         | 
| 22 | 
            -
                <style>
         | 
| 23 | 
            -
                    :root {
         | 
| 24 | 
            -
                        /*--ueditor-top-offset: 20px;*/
         | 
| 25 | 
            -
                    }
         | 
| 26 | 
            -
                </style>
         | 
| 27 | 
            -
                <link rel="stylesheet" href="./style.css"/>
         | 
| 28 | 
            -
            </head>
         | 
| 29 | 
            -
            <body class="demo-editor-page">
         | 
| 30 | 
            -
            <div>
         | 
| 31 | 
            -
                <h1>完整示例</h1>
         | 
| 32 | 
            -
                <div>
         | 
| 33 | 
            -
                    <script id="editor" type="text/plain" style="height:300px;">
         | 
| 34 | 
            -
            <h1>
         | 
| 35 | 
            -
                你好 UEditorPlus
         | 
| 36 | 
            -
            </h1>
         | 
| 37 | 
            -
            <p>
         | 
| 38 | 
            -
                UEditorPlus 是基于 UEditor 二次开发的富文本编辑器,让 UEditor <span style="color: #E36C09;">焕<span style="color: #0070C0;">然</span><span style="color: #31859B;"><span style="color: #00B050;">一</span><span style="color: #FF0000;">新</span></span></span>
         | 
| 39 | 
            -
            </p>
         | 
| 40 | 
            -
             | 
| 41 | 
            -
            <table data-sort="sortDisabled">
         | 
| 42 | 
            -
                <tbody>
         | 
| 43 | 
            -
                    <tr class="firstRow">
         | 
| 44 | 
            -
                        <td valign="top" style="word-break: break-all;" rowspan="1" colspan="3">
         | 
| 45 | 
            -
                            我是表格
         | 
| 46 | 
            -
                        </td>
         | 
| 47 | 
            -
                    </tr>
         | 
| 48 | 
            -
                    <tr>
         | 
| 49 | 
            -
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 50 | 
            -
                            如果
         | 
| 51 | 
            -
                        </td>
         | 
| 52 | 
            -
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 53 | 
            -
                            有一天
         | 
| 54 | 
            -
                        </td>
         | 
| 55 | 
            -
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 56 | 
            -
                            我离开了
         | 
| 57 | 
            -
                        </td>
         | 
| 58 | 
            -
                    </tr>
         | 
| 59 | 
            -
                    <tr>
         | 
| 60 | 
            -
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 61 | 
            -
                            怎么才能
         | 
| 62 | 
            -
                        </td>
         | 
| 63 | 
            -
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 64 | 
            -
                            证明我
         | 
| 65 | 
            -
                        </td>
         | 
| 66 | 
            -
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 67 | 
            -
                            曾经来过
         | 
| 68 | 
            -
                        </td>
         | 
| 69 | 
            -
                    </tr>
         | 
| 70 | 
            -
                </tbody>
         | 
| 71 | 
            -
            </table>
         | 
| 72 | 
            -
            <pre class="brush:html;toolbar:false"><div>
         | 
| 73 | 
            -
              <span>这里是HTML标签</span>
         | 
| 74 | 
            -
            </div></pre>
         | 
| 75 | 
            -
            <h2>
         | 
| 76 | 
            -
            公式支持
         | 
| 77 | 
            -
            </h2>
         | 
| 78 | 
            -
            <p>
         | 
| 79 | 
            -
                <img src="https://r.latexeasy.com/image.svg?%5Cint%20%5Cfrac%7B1%7D%7Bx%7D%20dx%20%3D%20%5Cln%20%5Cleft%7C%20x%20%5Cright%7C%20%2B%20C"
         | 
| 80 | 
            -
                  data-formula-image="%5Cint%20%5Cfrac%7B1%7D%7Bx%7D%20dx%20%3D%20%5Cln%20%5Cleft%7C%20x%20%5Cright%7C%20%2B%20C"/>
         | 
| 81 | 
            -
            </p>
         | 
| 82 | 
            -
            <p>
         | 
| 83 | 
            -
                <br/>
         | 
| 84 | 
            -
            </p>
         | 
| 85 | 
            -
             | 
| 86 | 
            -
                    </script>
         | 
| 87 | 
            -
                </div>
         | 
| 88 | 
            -
                <div id="btns" style="margin-top:20px;">
         | 
| 89 | 
            -
                    <div>
         | 
| 90 | 
            -
             | 
| 91 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getAllHtml())">获得整个html的内容</button>
         | 
| 92 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getContent())">获得内容</button>
         | 
| 93 | 
            -
                        <button onclick="UE.getEditor('editor').setContent('<p>欢迎使用 UEditorPlus</p>', false)">写入内容</button>
         | 
| 94 | 
            -
                        <button onclick="UE.getEditor('editor').setContent('<p>欢迎使用 UEditorPlus</p>', true)">追加内容</button>
         | 
| 95 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getContentTxt())">获得纯文本</button>
         | 
| 96 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getPlainTxt())">获得带格式的纯文本</button>
         | 
| 97 | 
            -
                        <button onclick="alert(UE.getEditor('editor').hasContents())">判断是否有内容</button>
         | 
| 98 | 
            -
                        <button onclick="UE.getEditor('editor').focus()">使编辑器获得焦点</button>
         | 
| 99 | 
            -
                        <button onmousedown="isFocus()">编辑器是否获得焦点</button>
         | 
| 100 | 
            -
                        <button onmousedown="setBlur()">编辑器失去焦点</button>
         | 
| 101 | 
            -
                        <button onclick="getSelectText()">获得当前选中的文本</button>
         | 
| 102 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('insertHtml', '插入的内容')">插入内容</button>
         | 
| 103 | 
            -
                        <button onclick="UE.getEditor('editor').setEnabled()">设定可编辑</button>
         | 
| 104 | 
            -
                        <button onclick="UE.getEditor('editor').setDisabled('fullscreen')">设定不可编辑</button>
         | 
| 105 | 
            -
                        <button onclick="UE.getEditor('editor').setHide()">隐藏编辑器</button>
         | 
| 106 | 
            -
                        <button onclick="UE.getEditor('editor').setShow()">显示编辑器</button>
         | 
| 107 | 
            -
                        <button onclick="UE.getEditor('editor').setHeight(300)">设置固定高度</button>
         | 
| 108 | 
            -
                        <button onclick="UE.getEditor('editor')">创建编辑器</button>
         | 
| 109 | 
            -
                        <button onclick="UE.getEditor('editor').destroy()">销毁编辑器</button>
         | 
| 110 | 
            -
                        <button onclick="alert( UE.getEditor('editor').execCommand('get_auto_save_content') )">草稿箱-获取</button>
         | 
| 111 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('clear_auto_save_content'); alert('已清空草稿箱')">草稿箱-清空
         | 
| 112 | 
            -
                        </button>
         | 
| 113 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('set_auto_save_content'); alert('已保存')">草稿箱-立即保存
         | 
| 114 | 
            -
                        </button>
         | 
| 115 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('auto_save_restore')">草稿箱-恢复到编辑器</button>
         | 
| 116 | 
            -
                    </div>
         | 
| 117 | 
            -
                </div>
         | 
| 118 | 
            -
             | 
| 119 | 
            -
                <script type="text/javascript">
         | 
| 120 | 
            -
                    var ue = UE.getEditor('editor',{
         | 
| 121 | 
            -
                        // autoHeightEnabled: false,
         | 
| 122 | 
            -
                    });
         | 
| 123 | 
            -
                    ue.on('contentchange', function () {
         | 
| 124 | 
            -
                        // console.log('contentchange', ue.getContent());
         | 
| 125 | 
            -
                    });
         | 
| 126 | 
            -
             | 
| 127 | 
            -
                    function isFocus(e) {
         | 
| 128 | 
            -
                        alert(UE.getEditor('editor').isFocus());
         | 
| 129 | 
            -
                        UE.dom.domUtils.preventDefault(e)
         | 
| 130 | 
            -
                    }
         | 
| 131 | 
            -
             | 
| 132 | 
            -
                    function setBlur(e) {
         | 
| 133 | 
            -
                        UE.getEditor('editor').blur();
         | 
| 134 | 
            -
                        UE.dom.domUtils.preventDefault(e)
         | 
| 135 | 
            -
                    }
         | 
| 136 | 
            -
             | 
| 137 | 
            -
                    function getSelectText() {
         | 
| 138 | 
            -
                        var range = UE.getEditor('editor').selection.getRange();
         | 
| 139 | 
            -
                        range.select();
         | 
| 140 | 
            -
                        var txt = UE.getEditor('editor').selection.getText();
         | 
| 141 | 
            -
                        alert(txt)
         | 
| 142 | 
            -
                    }
         | 
| 143 | 
            -
                </script>
         | 
| 144 | 
            -
            </div>
         | 
| 145 | 
            -
            </body>
         | 
| 146 | 
            -
            </html>
         |