@lingxiteam/lcdp-ueditor-react 1.0.2 → 1.0.3-alpha.2

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 (76) hide show
  1. package/es/LcdpUeditor.d.ts.map +1 -1
  2. package/es/LcdpUeditor.js +2 -1
  3. package/es/tools/UeditorResourceLoader.d.ts +1 -1
  4. package/es/tools/UeditorResourceLoader.d.ts.map +1 -1
  5. package/es/tools/UeditorResourceLoader.js +18 -7
  6. package/es/tools/filterHtmlNode.d.ts.map +1 -1
  7. package/es/tools/filterHtmlNode.js +7 -2
  8. package/lib/LcdpUeditor.js +1 -3
  9. package/lib/tools/UeditorResourceLoader.d.ts +1 -1
  10. package/lib/tools/UeditorResourceLoader.js +15 -7
  11. package/lib/tools/filterHtmlNode.js +8 -4
  12. package/package.json +1 -1
  13. package/ueditor-resource/dialogs/anchor/anchor.html +1 -1
  14. package/ueditor-resource/dialogs/attachment/attachment.css +2 -715
  15. package/ueditor-resource/dialogs/attachment/attachment.html +6 -6
  16. package/ueditor-resource/dialogs/attachment/attachment.js +2 -803
  17. package/ueditor-resource/dialogs/audio/audio.css +2 -878
  18. package/ueditor-resource/dialogs/audio/audio.js +2 -815
  19. package/ueditor-resource/dialogs/background/background.css +2 -192
  20. package/ueditor-resource/dialogs/background/background.html +3 -3
  21. package/ueditor-resource/dialogs/background/background.js +2 -370
  22. package/ueditor-resource/dialogs/contentimport/contentimport.html +3 -3
  23. package/ueditor-resource/dialogs/contentimport/contentimport.js +2 -91
  24. package/ueditor-resource/dialogs/emotion/emotion.css +2 -128
  25. package/ueditor-resource/dialogs/emotion/emotion.html +3 -3
  26. package/ueditor-resource/dialogs/emotion/emotion.js +2 -186
  27. package/ueditor-resource/dialogs/formula/formula.html +4 -4
  28. package/ueditor-resource/dialogs/formula/formula.js +2 -147
  29. package/ueditor-resource/dialogs/help/help.css +2 -36
  30. package/ueditor-resource/dialogs/help/help.html +3 -3
  31. package/ueditor-resource/dialogs/help/help.js +2 -57
  32. package/ueditor-resource/dialogs/image/image.css +2 -767
  33. package/ueditor-resource/dialogs/image/image.js +2 -1060
  34. package/ueditor-resource/dialogs/insertframe/insertframe.html +2 -2
  35. package/ueditor-resource/dialogs/internal.js +2 -81
  36. package/ueditor-resource/dialogs/preview/preview.html +2 -2
  37. package/ueditor-resource/dialogs/scrawl/scrawl.css +2 -323
  38. package/ueditor-resource/dialogs/scrawl/scrawl.html +3 -3
  39. package/ueditor-resource/dialogs/scrawl/scrawl.js +2 -682
  40. package/ueditor-resource/dialogs/searchreplace/searchreplace.html +2 -2
  41. package/ueditor-resource/dialogs/searchreplace/searchreplace.js +2 -174
  42. package/ueditor-resource/dialogs/spechars/spechars.html +2 -2
  43. package/ueditor-resource/dialogs/spechars/spechars.js +2 -86
  44. package/ueditor-resource/dialogs/table/edittable.css +2 -84
  45. package/ueditor-resource/dialogs/table/edittable.html +3 -3
  46. package/ueditor-resource/dialogs/table/edittable.js +2 -241
  47. package/ueditor-resource/dialogs/table/edittd.html +1 -1
  48. package/ueditor-resource/dialogs/table/edittip.html +1 -1
  49. package/ueditor-resource/dialogs/template/config.js +2 -42
  50. package/ueditor-resource/dialogs/template/template.css +2 -98
  51. package/ueditor-resource/dialogs/template/template.html +4 -4
  52. package/ueditor-resource/dialogs/template/template.js +2 -53
  53. package/ueditor-resource/dialogs/video/video.css +2 -908
  54. package/ueditor-resource/dialogs/video/video.js +2 -867
  55. package/ueditor-resource/dialogs/wordimage/wordimage.html +5 -5
  56. package/ueditor-resource/dialogs/wordimage/wordimage.js +2 -93
  57. package/ueditor-resource/lang/en/en.js +2 -686
  58. package/ueditor-resource/lang/zh-cn/zh-cn.js +2 -748
  59. package/ueditor-resource/lang/zh-tw/zh-tw.js +2 -748
  60. package/ueditor-resource/plugins/demo/demo.js +1 -3
  61. package/ueditor-resource/themes/default/css/ueditor.css +2 -2148
  62. package/ueditor-resource/themes/default/dialog.css +2 -16
  63. package/ueditor-resource/themes/default/dialogbase.css +2 -131
  64. package/ueditor-resource/themes/iframe.css +2 -62
  65. package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +4 -3655
  66. package/ueditor-resource/third-party/SyntaxHighlighter/shCoreDefault.css +3 -1
  67. package/ueditor-resource/third-party/clipboard/clipboard.js +2 -753
  68. package/ueditor-resource/third-party/codemirror/codemirror.css +2 -105
  69. package/ueditor-resource/third-party/codemirror/codemirror.js +3 -3581
  70. package/ueditor-resource/third-party/jquery-3.5.1.js +4 -2
  71. package/ueditor-resource/third-party/jquery-3.5.1_1.js +4 -4314
  72. package/ueditor-resource/third-party/webuploader/webuploader.css +2 -87
  73. package/ueditor-resource/third-party/webuploader/webuploader.js +5 -4
  74. package/ueditor-resource/ueditor.all.js +20 -32644
  75. package/ueditor-resource/ueditor.config.js +2 -655
  76. package/ueditor-resource/ueditor.parse.js +2 -639
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5
5
  <title></title>
6
- <script type="text/javascript" src="../internal.js?aea0c61c"></script>
7
- <link rel="stylesheet" href="../../themes/default/dialog.css?963f161c">
6
+ <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
7
+ <link rel="stylesheet" href="../../themes/default/dialog.css?c473027a">
8
8
  <style type="text/css">
9
9
  .warp {
10
10
  width: 320px;
@@ -1,81 +1,2 @@
1
- (function () {
2
- var parent = window.parent;
3
- //dialog对象
4
- dialog = parent.$EDITORUI[window.frameElement.id.replace(/_iframe$/, '')];
5
- //当前打开dialog的编辑器实例
6
- editor = dialog.editor;
7
-
8
- UE = parent.UE;
9
-
10
- domUtils = UE.dom.domUtils;
11
-
12
- utils = UE.utils;
13
-
14
- browser = UE.browser;
15
-
16
- ajax = UE.ajax;
17
-
18
- $G = function (id) {
19
- return document.getElementById(id)
20
- };
21
- //focus元素
22
- $focus = function (node) {
23
- setTimeout(function () {
24
- if (browser.ie) {
25
- var r = node.createTextRange();
26
- r.collapse(false);
27
- r.select();
28
- } else {
29
- node.focus()
30
- }
31
- }, 0)
32
- };
33
- utils.loadFile(document, {
34
- href: editor.options.themePath + editor.options.theme + "/dialogbase.css?cache=" + Math.random(),
35
- tag: "link",
36
- type: "text/css",
37
- rel: "stylesheet"
38
- });
39
- lang = editor.getLang(dialog.className.split("-")[2]);
40
- if (lang) {
41
- domUtils.on(window, 'load', function () {
42
-
43
- var langImgPath = editor.options.langPath + editor.options.lang + "/images/";
44
- //针对静态资源
45
- for (var i in lang["static"]) {
46
- var dom = $G(i);
47
- if (!dom) continue;
48
- var tagName = dom.tagName,
49
- content = lang["static"][i];
50
- if (content.src) {
51
- //clone
52
- content = utils.extend({}, content, false);
53
- content.src = langImgPath + content.src;
54
- }
55
- if (content.style) {
56
- content = utils.extend({}, content, false);
57
- content.style = content.style.replace(/url\s*\(/g, "url(" + langImgPath)
58
- }
59
- switch (tagName.toLowerCase()) {
60
- case "var":
61
- dom.parentNode.replaceChild(document.createTextNode(content), dom);
62
- break;
63
- case "select":
64
- var ops = dom.options;
65
- for (var j = 0, oj; oj = ops[j];) {
66
- oj.innerHTML = content.options[j++];
67
- }
68
- for (var p in content) {
69
- p != "options" && dom.setAttribute(p, content[p]);
70
- }
71
- break;
72
- default :
73
- domUtils.setAttributes(dom, content);
74
- }
75
- }
76
- });
77
- }
78
-
79
-
80
- })();
81
-
1
+ /*! UEditorPlus v2.0.0*/
2
+ !function(){var a=window.parent;dialog=a.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],editor=dialog.editor,UE=a.UE,domUtils=UE.dom.domUtils,utils=UE.utils,browser=UE.browser,ajax=UE.ajax,$G=function(a){return document.getElementById(a)},$focus=function(a){setTimeout(function(){if(browser.ie){var b=a.createTextRange();b.collapse(!1),b.select()}else a.focus()},0)},utils.loadFile(document,{href:editor.options.themePath+editor.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"}),lang=editor.getLang(dialog.className.split("-")[2]),lang&&domUtils.on(window,"load",function(){var a=editor.options.langPath+editor.options.lang+"/images/";for(var b in lang["static"]){var c=$G(b);if(c){var d=c.tagName,e=lang["static"][b];switch(e.src&&(e=utils.extend({},e,!1),e.src=a+e.src),e.style&&(e=utils.extend({},e,!1),e.style=e.style.replace(/url\s*\(/g,"url("+a)),d.toLowerCase()){case"var":c.parentNode.replaceChild(document.createTextNode(e),c);break;case"select":for(var f,g=c.options,h=0;f=g[h];)f.innerHTML=e.options[h++];for(var i in e)"options"!=i&&c.setAttribute(i,e[i]);break;default:domUtils.setAttributes(c,e)}}}})}();
@@ -23,8 +23,8 @@
23
23
  font-size: 16px;
24
24
  }
25
25
  </style>
26
- <script type="text/javascript" src="../internal.js?aea0c61c"></script>
27
- <script src="../../ueditor.parse.js?081fdc89"></script>
26
+ <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
27
+ <script src="../../ueditor.parse.js?733c9330"></script>
28
28
  <title></title>
29
29
  </head>
30
30
  <body class="view">
@@ -1,324 +1,3 @@
1
- /*common
2
- */
3
- body {
4
- margin: 0;
5
- }
6
-
7
- table {
8
- width: 100%;
9
- }
10
-
11
- table td {
12
- padding: 2px 4px;
13
- vertical-align: middle;
14
- }
15
-
16
- a {
17
- text-decoration: none;
18
- }
19
-
20
- em {
21
- font-style: normal;
22
- }
23
-
24
- .border_style1 {
25
- border: 1px solid #ccc;
26
- border-radius: 5px;
27
- box-shadow: 2px 2px 5px #d3d6da;
28
- }
29
-
30
- /*module
31
- */
32
- .main {
33
- margin: 8px;
34
- overflow: hidden;
35
- }
36
-
37
- .hot {
38
- float: left;
39
- height: 335px;
40
- }
41
-
42
- .drawBoard {
43
- position: relative;
44
- cursor: crosshair;
45
- }
46
-
47
- .brushBorad {
48
- position: absolute;
49
- left: 0;
50
- top: 0;
51
- z-index: 998;
52
- }
53
-
54
- .picBoard {
55
- border: none;
56
- text-align: center;
57
- line-height: 300px;
58
- cursor: default;
59
- }
60
-
61
- .operateBar {
62
- margin-top: 10px;
63
- font-size: 12px;
64
- text-align: center;
65
- }
66
-
67
- .operateBar span {
68
- margin-left: 10px;
69
- }
70
-
71
- .drawToolbar {
72
- float: right;
73
- width: 110px;
74
- height: 300px;
75
- overflow: hidden;
76
- }
77
-
78
- .colorBar {
79
- margin-top: 10px;
80
- font-size: 12px;
81
- text-align: center;
82
- }
83
-
84
- .colorBar a {
85
- display: block;
86
- width: 10px;
87
- height: 10px;
88
- border: 1px solid #1006F1;
89
- border-radius: 3px;
90
- box-shadow: 2px 2px 5px #d3d6da;
91
- opacity: 0.3
92
- }
93
-
94
- .sectionBar {
95
- margin-top: 15px;
96
- font-size: 12px;
97
- text-align: center;
98
- }
99
-
100
- .sectionBar a {
101
- display: inline-block;
102
- width: 10px;
103
- height: 12px;
104
- color: #888;
105
- text-indent: -999px;
106
- opacity: 0.3
107
- }
108
-
109
- .size1 {
110
- background: url('images/size.png') 1px center no-repeat;
111
- }
112
-
113
- .size2 {
114
- background: url('images/size.png') -10px center no-repeat;
115
- }
116
-
117
- .size3 {
118
- background: url('images/size.png') -22px center no-repeat;
119
- }
120
-
121
- .size4 {
122
- background: url('images/size.png') -35px center no-repeat;
123
- }
124
-
125
- .addImgH {
126
- position: relative;
127
- }
128
-
129
- .addImgH_form {
130
- position: absolute;
131
- left: 18px;
132
- top: -1px;
133
- width: 75px;
134
- height: 21px;
135
- opacity: 0;
136
- cursor: pointer;
137
- }
138
-
139
- .addImgH_form input {
140
- width: 100%;
141
- }
142
-
143
- /*scrawl遮罩层
144
- */
145
- .maskLayerNull {
146
- display: none;
147
- }
148
-
149
- .maskLayer {
150
- position: absolute;
151
- top: 0;
152
- left: 0;
153
- width: 100%;
154
- height: 100%;
155
- opacity: 0.7;
156
- background-color: #fff;
157
- text-align: center;
158
- font-weight: bold;
159
- line-height: 300px;
160
- z-index: 1000;
161
- }
162
-
163
- /*btn state
164
- */
165
- .previousStepH .icon {
166
- display: inline-block;
167
- width: 16px;
168
- height: 16px;
169
- background-image: url('images/undoH.png');
170
- cursor: pointer;
171
- }
172
-
173
- .previousStepH .text {
174
- color: #888;
175
- cursor: pointer;
176
- }
177
-
178
- .previousStep .icon {
179
- display: inline-block;
180
- width: 16px;
181
- height: 16px;
182
- background-image: url('images/undo.png');
183
- cursor: default;
184
- }
185
-
186
- .previousStep .text {
187
- color: #ccc;
188
- cursor: default;
189
- }
190
-
191
- .nextStepH .icon {
192
- display: inline-block;
193
- width: 16px;
194
- height: 16px;
195
- background-image: url('images/redoH.png');
196
- cursor: pointer;
197
- }
198
-
199
- .nextStepH .text {
200
- color: #888;
201
- cursor: pointer;
202
- }
203
-
204
- .nextStep .icon {
205
- display: inline-block;
206
- width: 16px;
207
- height: 16px;
208
- background-image: url('images/redo.png');
209
- cursor: default;
210
- }
211
-
212
- .nextStep .text {
213
- color: #ccc;
214
- cursor: default;
215
- }
216
-
217
- .clearBoardH .icon {
218
- display: inline-block;
219
- width: 16px;
220
- height: 16px;
221
- background-image: url('images/emptyH.png');
222
- cursor: pointer;
223
- }
224
-
225
- .clearBoardH .text {
226
- color: #888;
227
- cursor: pointer;
228
- }
229
-
230
- .clearBoard .icon {
231
- display: inline-block;
232
- width: 16px;
233
- height: 16px;
234
- background-image: url('images/empty.png');
235
- cursor: default;
236
- }
237
-
238
- .clearBoard .text {
239
- color: #ccc;
240
- cursor: default;
241
- }
242
-
243
- .scaleBoardH .icon {
244
- display: inline-block;
245
- width: 16px;
246
- height: 16px;
247
- background-image: url('images/scaleH.png');
248
- cursor: pointer;
249
- }
250
-
251
- .scaleBoardH .text {
252
- color: #888;
253
- cursor: pointer;
254
- }
255
-
256
- .scaleBoard .icon {
257
- display: inline-block;
258
- width: 16px;
259
- height: 16px;
260
- background-image: url('images/scale.png');
261
- cursor: default;
262
- }
263
-
264
- .scaleBoard .text {
265
- color: #ccc;
266
- cursor: default;
267
- }
268
-
269
- .removeImgH .icon {
270
- display: inline-block;
271
- width: 16px;
272
- height: 16px;
273
- background-image: url('images/delimgH.png');
274
- cursor: pointer;
275
- }
276
-
277
- .removeImgH .text {
278
- color: #888;
279
- cursor: pointer;
280
- }
281
-
282
- .removeImg .icon {
283
- display: inline-block;
284
- width: 16px;
285
- height: 16px;
286
- background-image: url('images/delimg.png');
287
- cursor: default;
288
- }
289
-
290
- .removeImg .text {
291
- color: #ccc;
292
- cursor: default;
293
- }
294
-
295
- .addImgH .icon {
296
- vertical-align: top;
297
- display: inline-block;
298
- width: 16px;
299
- height: 16px;
300
- background-image: url('images/addimg.png')
301
- }
302
-
303
- .addImgH .text {
304
- color: #888;
305
- cursor: pointer;
306
- }
307
-
308
- /*icon
309
- */
310
- .brushIcon {
311
- display: inline-block;
312
- width: 16px;
313
- height: 16px;
314
- background-image: url('images/brush.png')
315
- }
316
-
317
- .eraserIcon {
318
- display: inline-block;
319
- width: 16px;
320
- height: 16px;
321
- background-image: url('images/eraser.png')
322
- }
323
-
1
+ /*! UEditorPlus v2.0.0*/
324
2
 
3
+ body{margin:0}table{width:100%}table td{padding:2px 4px;vertical-align:middle}a{text-decoration:none}em{font-style:normal}.border_style1{border:1px solid #ccc;border-radius:5px;box-shadow:2px 2px 5px #d3d6da}.main{margin:8px;overflow:hidden}.hot{float:left;height:335px}.drawBoard{position:relative;cursor:crosshair}.brushBorad{position:absolute;left:0;top:0;z-index:998}.picBoard{border:0;text-align:center;line-height:300px;cursor:default}.operateBar{margin-top:10px;font-size:12px;text-align:center}.operateBar span{margin-left:10px}.drawToolbar{float:right;width:110px;height:300px;overflow:hidden}.colorBar{margin-top:10px;font-size:12px;text-align:center}.colorBar a{display:block;width:10px;height:10px;border:1px solid #1006F1;border-radius:3px;box-shadow:2px 2px 5px #d3d6da;opacity:.3}.sectionBar{margin-top:15px;font-size:12px;text-align:center}.sectionBar a{display:inline-block;width:10px;height:12px;color:#888;text-indent:-999px;opacity:.3}.size1{background:url(images/size.png) 1px center no-repeat}.size2{background:url(images/size.png) -10px center no-repeat}.size3{background:url(images/size.png) -22px center no-repeat}.size4{background:url(images/size.png) -35px center no-repeat}.addImgH{position:relative}.addImgH_form{position:absolute;left:18px;top:-1px;width:75px;height:21px;opacity:0;cursor:pointer}.addImgH_form input{width:100%}.maskLayerNull{display:none}.maskLayer{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.7;background-color:#fff;text-align:center;font-weight:700;line-height:300px;z-index:1000}.previousStepH .icon{display:inline-block;width:16px;height:16px;background-image:url(images/undoH.png);cursor:pointer}.previousStepH .text{color:#888;cursor:pointer}.previousStep .icon{display:inline-block;width:16px;height:16px;background-image:url(images/undo.png);cursor:default}.previousStep .text{color:#ccc;cursor:default}.nextStepH .icon{display:inline-block;width:16px;height:16px;background-image:url(images/redoH.png);cursor:pointer}.nextStepH .text{color:#888;cursor:pointer}.nextStep .icon{display:inline-block;width:16px;height:16px;background-image:url(images/redo.png);cursor:default}.nextStep .text{color:#ccc;cursor:default}.clearBoardH .icon{display:inline-block;width:16px;height:16px;background-image:url(images/emptyH.png);cursor:pointer}.clearBoardH .text{color:#888;cursor:pointer}.clearBoard .icon{display:inline-block;width:16px;height:16px;background-image:url(images/empty.png);cursor:default}.clearBoard .text{color:#ccc;cursor:default}.scaleBoardH .icon{display:inline-block;width:16px;height:16px;background-image:url(images/scaleH.png);cursor:pointer}.scaleBoardH .text{color:#888;cursor:pointer}.scaleBoard .icon{display:inline-block;width:16px;height:16px;background-image:url(images/scale.png);cursor:default}.scaleBoard .text{color:#ccc;cursor:default}.removeImgH .icon{display:inline-block;width:16px;height:16px;background-image:url(images/delimgH.png);cursor:pointer}.removeImgH .text{color:#888;cursor:pointer}.removeImg .icon{display:inline-block;width:16px;height:16px;background-image:url(images/delimg.png);cursor:default}.removeImg .text{color:#ccc;cursor:default}.addImgH .icon{vertical-align:top;display:inline-block;width:16px;height:16px;background-image:url(images/addimg.png)}.addImgH .text{color:#888;cursor:pointer}.brushIcon{display:inline-block;width:16px;height:16px;background-image:url(images/brush.png)}.eraserIcon{display:inline-block;width:16px;height:16px;background-image:url(images/eraser.png)}
@@ -4,8 +4,8 @@
4
4
  <title></title>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
6
  <meta name="robots" content="noindex, nofollow"/>
7
- <script type="text/javascript" src="../internal.js?aea0c61c"></script>
8
- <link rel="stylesheet" type="text/css" href="scrawl.css?5bdd07f3">
7
+ <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
8
+ <link rel="stylesheet" type="text/css" href="scrawl.css?dce615c7">
9
9
  </head>
10
10
  <body>
11
11
  <div class="main" id="J_wrap">
@@ -70,7 +70,7 @@
70
70
  </div>
71
71
  <div id="J_maskLayer" class="maskLayerNull"></div>
72
72
 
73
- <script type="text/javascript" src="scrawl.js?ee947940"></script>
73
+ <script type="text/javascript" src="scrawl.js?eb98629c"></script>
74
74
  <script type="text/javascript">
75
75
  var settings = {
76
76
  drawBrushSize: 3, //画笔初始大小