@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.9 → 1.0.1

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.
Files changed (111) hide show
  1. package/es/LcdpUeditor.js +64 -61
  2. package/es/const.js +4 -4
  3. package/es/defaultConfig.json +76 -76
  4. package/es/tools/UeditorResourceLoader.js +11 -16
  5. package/es/tools/filterHtmlNode.d.ts +5 -0
  6. package/es/tools/filterHtmlNode.js +41 -0
  7. package/es/tools/loadScript.js +5 -7
  8. package/es/type.d.ts +6 -0
  9. package/lib/LcdpUeditor.js +18 -8
  10. package/lib/defaultConfig.json +76 -76
  11. package/lib/tools/filterHtmlNode.d.ts +5 -0
  12. package/lib/tools/filterHtmlNode.js +61 -0
  13. package/lib/type.d.ts +6 -0
  14. package/package.json +35 -34
  15. package/ueditor-resource/dialogs/anchor/anchor.html +62 -62
  16. package/ueditor-resource/dialogs/attachment/attachment.css +716 -716
  17. package/ueditor-resource/dialogs/attachment/attachment.html +61 -61
  18. package/ueditor-resource/dialogs/attachment/attachment.js +803 -803
  19. package/ueditor-resource/dialogs/audio/audio.css +879 -879
  20. package/ueditor-resource/dialogs/audio/audio.html +93 -93
  21. package/ueditor-resource/dialogs/audio/audio.js +815 -815
  22. package/ueditor-resource/dialogs/background/background.css +193 -193
  23. package/ueditor-resource/dialogs/background/background.html +59 -59
  24. package/ueditor-resource/dialogs/background/background.js +370 -370
  25. package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -176
  26. package/ueditor-resource/dialogs/contentimport/contentimport.js +91 -91
  27. package/ueditor-resource/dialogs/emotion/emotion.css +129 -129
  28. package/ueditor-resource/dialogs/emotion/emotion.html +70 -70
  29. package/ueditor-resource/dialogs/emotion/emotion.js +186 -186
  30. package/ueditor-resource/dialogs/formula/formula.html +98 -98
  31. package/ueditor-resource/dialogs/formula/formula.js +147 -147
  32. package/ueditor-resource/dialogs/help/help.css +37 -37
  33. package/ueditor-resource/dialogs/help/help.html +82 -82
  34. package/ueditor-resource/dialogs/help/help.js +57 -57
  35. package/ueditor-resource/dialogs/image/image.css +768 -768
  36. package/ueditor-resource/dialogs/image/image.html +144 -144
  37. package/ueditor-resource/dialogs/image/image.js +1060 -1060
  38. package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -135
  39. package/ueditor-resource/dialogs/internal.js +81 -81
  40. package/ueditor-resource/dialogs/link/link.html +148 -148
  41. package/ueditor-resource/dialogs/preview/preview.html +45 -45
  42. package/ueditor-resource/dialogs/scrawl/scrawl.css +324 -324
  43. package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -95
  44. package/ueditor-resource/dialogs/scrawl/scrawl.js +682 -682
  45. package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -144
  46. package/ueditor-resource/dialogs/searchreplace/searchreplace.js +174 -174
  47. package/ueditor-resource/dialogs/spechars/spechars.html +42 -42
  48. package/ueditor-resource/dialogs/spechars/spechars.js +86 -86
  49. package/ueditor-resource/dialogs/table/edittable.css +85 -85
  50. package/ueditor-resource/dialogs/table/edittable.html +69 -69
  51. package/ueditor-resource/dialogs/table/edittable.js +241 -241
  52. package/ueditor-resource/dialogs/table/edittd.html +62 -62
  53. package/ueditor-resource/dialogs/table/edittip.html +33 -33
  54. package/ueditor-resource/dialogs/template/config.js +42 -42
  55. package/ueditor-resource/dialogs/template/template.css +99 -99
  56. package/ueditor-resource/dialogs/template/template.html +26 -26
  57. package/ueditor-resource/dialogs/template/template.js +53 -53
  58. package/ueditor-resource/dialogs/video/video.css +909 -909
  59. package/ueditor-resource/dialogs/video/video.html +114 -114
  60. package/ueditor-resource/dialogs/video/video.js +867 -867
  61. package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -221
  62. package/ueditor-resource/dialogs/wordimage/wordimage.js +93 -93
  63. package/ueditor-resource/lang/en/en.js +686 -686
  64. package/ueditor-resource/lang/zh-cn/zh-cn.js +748 -748
  65. package/ueditor-resource/lang/zh-tw/zh-tw.js +748 -748
  66. package/ueditor-resource/plugins/demo/demo.js +3 -3
  67. package/ueditor-resource/themes/default/css/ueditor.css +2148 -2148
  68. package/ueditor-resource/themes/default/dialog.css +17 -17
  69. package/ueditor-resource/themes/default/dialogbase.css +132 -132
  70. package/ueditor-resource/themes/default/exts/ai.svg +12 -12
  71. package/ueditor-resource/themes/default/exts/apk.svg +12 -12
  72. package/ueditor-resource/themes/default/exts/chm.svg +12 -12
  73. package/ueditor-resource/themes/default/exts/css.svg +12 -12
  74. package/ueditor-resource/themes/default/exts/doc.svg +22 -22
  75. package/ueditor-resource/themes/default/exts/docx.svg +22 -22
  76. package/ueditor-resource/themes/default/exts/dwg.svg +16 -16
  77. package/ueditor-resource/themes/default/exts/folder.svg +3 -3
  78. package/ueditor-resource/themes/default/exts/gif.svg +14 -14
  79. package/ueditor-resource/themes/default/exts/html.svg +12 -12
  80. package/ueditor-resource/themes/default/exts/jpeg.svg +14 -14
  81. package/ueditor-resource/themes/default/exts/jpg.svg +14 -14
  82. package/ueditor-resource/themes/default/exts/log.svg +12 -12
  83. package/ueditor-resource/themes/default/exts/mp3.svg +14 -14
  84. package/ueditor-resource/themes/default/exts/mp4.svg +12 -12
  85. package/ueditor-resource/themes/default/exts/pdf.svg +14 -14
  86. package/ueditor-resource/themes/default/exts/png.svg +14 -14
  87. package/ueditor-resource/themes/default/exts/ppt.svg +24 -24
  88. package/ueditor-resource/themes/default/exts/pptx.svg +24 -24
  89. package/ueditor-resource/themes/default/exts/psd.svg +12 -12
  90. package/ueditor-resource/themes/default/exts/rar.svg +12 -12
  91. package/ueditor-resource/themes/default/exts/svg.svg +12 -12
  92. package/ueditor-resource/themes/default/exts/torrent.svg +14 -14
  93. package/ueditor-resource/themes/default/exts/txt.svg +14 -14
  94. package/ueditor-resource/themes/default/exts/unknown.svg +12 -12
  95. package/ueditor-resource/themes/default/exts/xls.svg +25 -25
  96. package/ueditor-resource/themes/default/exts/xlsx.svg +25 -25
  97. package/ueditor-resource/themes/default/exts/zip.svg +12 -12
  98. package/ueditor-resource/themes/iframe.css +63 -63
  99. package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +3655 -3655
  100. package/ueditor-resource/third-party/clipboard/clipboard.js +752 -752
  101. package/ueditor-resource/third-party/codemirror/codemirror.css +106 -106
  102. package/ueditor-resource/third-party/codemirror/codemirror.js +3581 -3581
  103. package/ueditor-resource/third-party/jquery-3.5.1.js +1 -1
  104. package/ueditor-resource/third-party/jquery-3.5.1_1.js +4314 -4314
  105. package/ueditor-resource/third-party/webuploader/webuploader.css +88 -88
  106. package/ueditor-resource/third-party/webuploader/webuploader.js +3 -3
  107. package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1255 -1255
  108. package/ueditor-resource/{lcdp-ueditor.all.js → ueditor.all.js} +5270 -5269
  109. package/ueditor-resource/ueditor.config.js +655 -655
  110. package/ueditor-resource/{lcdp-ueditor.parse.js → ueditor.parse.js} +13 -13
  111. 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="lcdp-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">&lt;div&gt;
73
- &lt;span&gt;这里是HTML标签&lt;/span&gt;
74
- &lt;/div&gt;</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>