@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.2 → 1.0.0-alpha.21

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 (132) hide show
  1. package/es/LcdpUeditor.d.ts +4 -0
  2. package/es/LcdpUeditor.js +76 -51
  3. package/es/const.js +4 -4
  4. package/es/defaultConfig.json +76 -76
  5. package/es/tools/UeditorResourceLoader.js +6 -6
  6. package/es/tools/filterHtmlNode.d.ts +5 -0
  7. package/es/tools/filterHtmlNode.js +41 -0
  8. package/es/tools/loadScript.js +3 -3
  9. package/es/type.d.ts +7 -1
  10. package/lib/LcdpUeditor.d.ts +80 -0
  11. package/lib/LcdpUeditor.js +268 -0
  12. package/lib/const.d.ts +12 -0
  13. package/lib/const.js +39 -0
  14. package/lib/defaultConfig.json +77 -0
  15. package/lib/index.d.ts +4 -0
  16. package/lib/index.js +41 -0
  17. package/lib/tools/UeditorResourceLoader.d.ts +21 -0
  18. package/lib/tools/UeditorResourceLoader.js +90 -0
  19. package/lib/tools/filterHtmlNode.d.ts +5 -0
  20. package/lib/tools/filterHtmlNode.js +61 -0
  21. package/lib/tools/loadScript.d.ts +5 -0
  22. package/lib/tools/loadScript.js +39 -0
  23. package/lib/type.d.ts +148 -0
  24. package/lib/type.js +17 -0
  25. package/package.json +32 -32
  26. package/ueditor-resource/dialogs/anchor/anchor.html +62 -62
  27. package/ueditor-resource/dialogs/attachment/attachment.css +716 -716
  28. package/ueditor-resource/dialogs/attachment/attachment.html +61 -61
  29. package/ueditor-resource/dialogs/attachment/attachment.js +803 -803
  30. package/ueditor-resource/dialogs/audio/audio.css +879 -879
  31. package/ueditor-resource/dialogs/audio/audio.html +93 -93
  32. package/ueditor-resource/dialogs/audio/audio.js +815 -815
  33. package/ueditor-resource/dialogs/background/background.css +193 -193
  34. package/ueditor-resource/dialogs/background/background.html +59 -59
  35. package/ueditor-resource/dialogs/background/background.js +370 -370
  36. package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -176
  37. package/ueditor-resource/dialogs/contentimport/contentimport.js +91 -91
  38. package/ueditor-resource/dialogs/emotion/emotion.css +129 -129
  39. package/ueditor-resource/dialogs/emotion/emotion.html +70 -70
  40. package/ueditor-resource/dialogs/emotion/emotion.js +186 -186
  41. package/ueditor-resource/dialogs/formula/formula.html +98 -98
  42. package/ueditor-resource/dialogs/formula/formula.js +147 -147
  43. package/ueditor-resource/dialogs/help/help.css +37 -37
  44. package/ueditor-resource/dialogs/help/help.html +82 -82
  45. package/ueditor-resource/dialogs/help/help.js +57 -57
  46. package/ueditor-resource/dialogs/image/image.css +768 -768
  47. package/ueditor-resource/dialogs/image/image.html +144 -144
  48. package/ueditor-resource/dialogs/image/image.js +1060 -1060
  49. package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -135
  50. package/ueditor-resource/dialogs/internal.js +81 -81
  51. package/ueditor-resource/dialogs/link/link.html +148 -148
  52. package/ueditor-resource/dialogs/preview/preview.html +45 -45
  53. package/ueditor-resource/dialogs/scrawl/scrawl.css +324 -324
  54. package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -95
  55. package/ueditor-resource/dialogs/scrawl/scrawl.js +682 -682
  56. package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -144
  57. package/ueditor-resource/dialogs/searchreplace/searchreplace.js +174 -174
  58. package/ueditor-resource/dialogs/spechars/spechars.html +42 -42
  59. package/ueditor-resource/dialogs/spechars/spechars.js +86 -86
  60. package/ueditor-resource/dialogs/table/edittable.css +85 -85
  61. package/ueditor-resource/dialogs/table/edittable.html +69 -69
  62. package/ueditor-resource/dialogs/table/edittable.js +241 -241
  63. package/ueditor-resource/dialogs/table/edittd.html +62 -62
  64. package/ueditor-resource/dialogs/table/edittip.html +33 -33
  65. package/ueditor-resource/dialogs/template/config.js +42 -42
  66. package/ueditor-resource/dialogs/template/template.css +99 -99
  67. package/ueditor-resource/dialogs/template/template.html +26 -26
  68. package/ueditor-resource/dialogs/template/template.js +53 -53
  69. package/ueditor-resource/dialogs/video/video.css +909 -909
  70. package/ueditor-resource/dialogs/video/video.html +114 -114
  71. package/ueditor-resource/dialogs/video/video.js +867 -867
  72. package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -221
  73. package/ueditor-resource/dialogs/wordimage/wordimage.js +93 -93
  74. package/ueditor-resource/lang/en/en.js +686 -686
  75. package/ueditor-resource/lang/zh-cn/zh-cn.js +748 -748
  76. package/ueditor-resource/lang/zh-tw/images/copy.png +0 -0
  77. package/ueditor-resource/lang/zh-tw/images/localimage.png +0 -0
  78. package/ueditor-resource/lang/zh-tw/images/music.png +0 -0
  79. package/ueditor-resource/lang/zh-tw/images/upload.png +0 -0
  80. package/ueditor-resource/lang/zh-tw/zh-tw.js +748 -0
  81. package/ueditor-resource/plugins/demo/demo.js +3 -3
  82. package/ueditor-resource/themes/default/css/ueditor.css +2148 -2148
  83. package/ueditor-resource/themes/default/dialog.css +17 -17
  84. package/ueditor-resource/themes/default/dialogbase.css +132 -132
  85. package/ueditor-resource/themes/default/exts/ai.svg +12 -12
  86. package/ueditor-resource/themes/default/exts/apk.svg +12 -12
  87. package/ueditor-resource/themes/default/exts/chm.svg +12 -12
  88. package/ueditor-resource/themes/default/exts/css.svg +12 -12
  89. package/ueditor-resource/themes/default/exts/doc.svg +22 -22
  90. package/ueditor-resource/themes/default/exts/docx.svg +22 -22
  91. package/ueditor-resource/themes/default/exts/dwg.svg +16 -16
  92. package/ueditor-resource/themes/default/exts/folder.svg +3 -3
  93. package/ueditor-resource/themes/default/exts/gif.svg +14 -14
  94. package/ueditor-resource/themes/default/exts/html.svg +12 -12
  95. package/ueditor-resource/themes/default/exts/jpeg.svg +14 -14
  96. package/ueditor-resource/themes/default/exts/jpg.svg +14 -14
  97. package/ueditor-resource/themes/default/exts/log.svg +12 -12
  98. package/ueditor-resource/themes/default/exts/mp3.svg +14 -14
  99. package/ueditor-resource/themes/default/exts/mp4.svg +12 -12
  100. package/ueditor-resource/themes/default/exts/pdf.svg +14 -14
  101. package/ueditor-resource/themes/default/exts/png.svg +14 -14
  102. package/ueditor-resource/themes/default/exts/ppt.svg +24 -24
  103. package/ueditor-resource/themes/default/exts/pptx.svg +24 -24
  104. package/ueditor-resource/themes/default/exts/psd.svg +12 -12
  105. package/ueditor-resource/themes/default/exts/rar.svg +12 -12
  106. package/ueditor-resource/themes/default/exts/svg.svg +12 -12
  107. package/ueditor-resource/themes/default/exts/torrent.svg +14 -14
  108. package/ueditor-resource/themes/default/exts/txt.svg +14 -14
  109. package/ueditor-resource/themes/default/exts/unknown.svg +12 -12
  110. package/ueditor-resource/themes/default/exts/xls.svg +25 -25
  111. package/ueditor-resource/themes/default/exts/xlsx.svg +25 -25
  112. package/ueditor-resource/themes/default/exts/zip.svg +12 -12
  113. package/ueditor-resource/themes/iframe.css +63 -63
  114. package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +3655 -3655
  115. package/ueditor-resource/third-party/clipboard/clipboard.js +752 -752
  116. package/ueditor-resource/third-party/codemirror/codemirror.css +106 -106
  117. package/ueditor-resource/third-party/codemirror/codemirror.js +3581 -3581
  118. package/ueditor-resource/third-party/jquery-3.5.1.js +1 -1
  119. package/ueditor-resource/third-party/jquery-3.5.1_1.js +4314 -4314
  120. package/ueditor-resource/third-party/webuploader/webuploader.css +88 -88
  121. package/ueditor-resource/third-party/webuploader/webuploader.js +3 -3
  122. package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1255 -1255
  123. package/ueditor-resource/ueditor.all.js +5271 -5270
  124. package/ueditor-resource/ueditor.config.js +655 -656
  125. package/ueditor-resource/ueditor.parse.js +13 -13
  126. package/es/LcdpUeditor.d.ts.map +0 -1
  127. package/es/const.d.ts.map +0 -1
  128. package/es/index.d.ts.map +0 -1
  129. package/es/tools/UeditorResourceLoader.d.ts.map +0 -1
  130. package/es/tools/loadScript.d.ts.map +0 -1
  131. package/es/type.d.ts.map +0 -1
  132. package/ueditor-resource/index.html +0 -146
@@ -1,186 +1,186 @@
1
- window.onload = function () {
2
- editor.setOpt({
3
- emotionLocalization: false
4
- });
5
-
6
- emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/";
7
- emotion.SmileyBox = createTabList(emotion.tabNum);
8
- emotion.tabExist = createArr(emotion.tabNum);
9
-
10
- initImgName();
11
- initEvtHandler("tabHeads");
12
- };
13
-
14
- function initImgName() {
15
- for (var pro in emotion.SmilmgName) {
16
- var tempName = emotion.SmilmgName[pro],
17
- tempBox = emotion.SmileyBox[pro],
18
- tempStr = "";
19
-
20
- if (tempBox.length) return;
21
- for (var i = 1; i <= tempName[1]; i++) {
22
- tempStr = tempName[0];
23
- if (i < 10) tempStr = tempStr + '0';
24
- tempStr = tempStr + i + '.gif';
25
- tempBox.push(tempStr);
26
- }
27
- }
28
- }
29
-
30
- function initEvtHandler(conId) {
31
- var tabHeads = $G(conId);
32
- for (var i = 0, j = 0; i < tabHeads.childNodes.length; i++) {
33
- var tabObj = tabHeads.childNodes[i];
34
- if (tabObj.nodeType == 1) {
35
- domUtils.on(tabObj, "click", (function (index) {
36
- return function () {
37
- switchTab(index);
38
- };
39
- })(j));
40
- j++;
41
- }
42
- }
43
- switchTab(0);
44
- $G("tabIconReview").style.display = 'none';
45
- }
46
-
47
- function InsertSmiley(url, evt) {
48
- var obj = {
49
- src: editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url
50
- };
51
- obj._src = obj.src;
52
- editor.execCommand('insertimage', obj);
53
- if (!evt.ctrlKey) {
54
- dialog.popup.hide();
55
- }
56
- }
57
-
58
- function switchTab(index) {
59
-
60
- autoHeight(index);
61
- if (emotion.tabExist[index] == 0) {
62
- emotion.tabExist[index] = 1;
63
- createTab('tab' + index);
64
- }
65
- //获取呈现元素句柄数组
66
- var tabHeads = $G("tabHeads").getElementsByTagName("span"),
67
- tabBodys = $G("tabBodys").getElementsByTagName("div"),
68
- i = 0, L = tabHeads.length;
69
- //隐藏所有呈现元素
70
- for (; i < L; i++) {
71
- tabHeads[i].className = "";
72
- tabBodys[i].style.display = "none";
73
- }
74
- //显示对应呈现元素
75
- tabHeads[index].className = "focus";
76
- tabBodys[index].style.display = "block";
77
- }
78
-
79
- function autoHeight(index) {
80
- var iframe = dialog.getDom("iframe"),
81
- parent = iframe.parentNode.parentNode;
82
- switch (index) {
83
- case 0:
84
- iframe.style.height = "380px";
85
- parent.style.height = "392px";
86
- break;
87
- case 1:
88
- iframe.style.height = "220px";
89
- parent.style.height = "232px";
90
- break;
91
- case 2:
92
- iframe.style.height = "260px";
93
- parent.style.height = "272px";
94
- break;
95
- case 3:
96
- iframe.style.height = "300px";
97
- parent.style.height = "312px";
98
- break;
99
- case 4:
100
- iframe.style.height = "140px";
101
- parent.style.height = "152px";
102
- break;
103
- case 5:
104
- iframe.style.height = "260px";
105
- parent.style.height = "272px";
106
- break;
107
- case 6:
108
- iframe.style.height = "230px";
109
- parent.style.height = "242px";
110
- break;
111
- default:
112
-
113
- }
114
- }
115
-
116
-
117
- function createTab(tabName) {
118
- var faceVersion = "?v=1.1", //版本号
119
- tab = $G(tabName), //获取将要生成的Div句柄
120
- imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径
121
- positionLine = 11 / 2, //中间数
122
- iWidth = iHeight = 35, //图片长宽
123
- iColWidth = 3, //表格剩余空间的显示比例
124
- tableCss = emotion.imageCss[tabName],
125
- cssOffset = emotion.imageCssOffset[tabName],
126
- textHTML = ['<table class="smileytable">'],
127
- i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage,
128
- sUrl, realUrl, posflag, offset, infor;
129
-
130
- for (; i < imgNum;) {
131
- textHTML.push('<tr>');
132
- for (var j = 0; j < imgColNum; j++, i++) {
133
- faceImage = emotion.SmileyBox[tabName][i];
134
- if (faceImage) {
135
- sUrl = imagePath + faceImage + faceVersion;
136
- realUrl = imagePath + faceImage;
137
- posflag = j < positionLine ? 0 : 1;
138
- offset = cssOffset * i * (-1) - 1;
139
- infor = emotion.SmileyInfor[tabName][i];
140
-
141
- textHTML.push('<td class="' + tableCss + '" border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center" bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace(/'/g, "\\'") + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">');
142
- textHTML.push('<span>');
143
- textHTML.push('<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>');
144
- textHTML.push('</span>');
145
- } else {
146
- textHTML.push('<td width="' + iColWidth + '%" bgcolor="#FFFFFF">');
147
- }
148
- textHTML.push('</td>');
149
- }
150
- textHTML.push('</tr>');
151
- }
152
- textHTML.push('</table>');
153
- textHTML = textHTML.join("");
154
- tab.innerHTML = textHTML;
155
- }
156
-
157
- function over(td, srcPath, posFlag) {
158
- td.style.backgroundColor = "#ACCD3C";
159
- $G('faceReview').style.backgroundImage = "url(" + srcPath + ")";
160
- if (posFlag == 1) $G("tabIconReview").className = "show";
161
- $G("tabIconReview").style.display = 'block';
162
- }
163
-
164
- function out(td) {
165
- td.style.backgroundColor = "transparent";
166
- var tabIconRevew = $G("tabIconReview");
167
- tabIconRevew.className = "";
168
- tabIconRevew.style.display = 'none';
169
- }
170
-
171
- function createTabList(tabNum) {
172
- var obj = {};
173
- for (var i = 0; i < tabNum; i++) {
174
- obj["tab" + i] = [];
175
- }
176
- return obj;
177
- }
178
-
179
- function createArr(tabNum) {
180
- var arr = [];
181
- for (var i = 0; i < tabNum; i++) {
182
- arr[i] = 0;
183
- }
184
- return arr;
185
- }
186
-
1
+ window.onload = function () {
2
+ editor.setOpt({
3
+ emotionLocalization: false
4
+ });
5
+
6
+ emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/";
7
+ emotion.SmileyBox = createTabList(emotion.tabNum);
8
+ emotion.tabExist = createArr(emotion.tabNum);
9
+
10
+ initImgName();
11
+ initEvtHandler("tabHeads");
12
+ };
13
+
14
+ function initImgName() {
15
+ for (var pro in emotion.SmilmgName) {
16
+ var tempName = emotion.SmilmgName[pro],
17
+ tempBox = emotion.SmileyBox[pro],
18
+ tempStr = "";
19
+
20
+ if (tempBox.length) return;
21
+ for (var i = 1; i <= tempName[1]; i++) {
22
+ tempStr = tempName[0];
23
+ if (i < 10) tempStr = tempStr + '0';
24
+ tempStr = tempStr + i + '.gif';
25
+ tempBox.push(tempStr);
26
+ }
27
+ }
28
+ }
29
+
30
+ function initEvtHandler(conId) {
31
+ var tabHeads = $G(conId);
32
+ for (var i = 0, j = 0; i < tabHeads.childNodes.length; i++) {
33
+ var tabObj = tabHeads.childNodes[i];
34
+ if (tabObj.nodeType == 1) {
35
+ domUtils.on(tabObj, "click", (function (index) {
36
+ return function () {
37
+ switchTab(index);
38
+ };
39
+ })(j));
40
+ j++;
41
+ }
42
+ }
43
+ switchTab(0);
44
+ $G("tabIconReview").style.display = 'none';
45
+ }
46
+
47
+ function InsertSmiley(url, evt) {
48
+ var obj = {
49
+ src: editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url
50
+ };
51
+ obj._src = obj.src;
52
+ editor.execCommand('insertimage', obj);
53
+ if (!evt.ctrlKey) {
54
+ dialog.popup.hide();
55
+ }
56
+ }
57
+
58
+ function switchTab(index) {
59
+
60
+ autoHeight(index);
61
+ if (emotion.tabExist[index] == 0) {
62
+ emotion.tabExist[index] = 1;
63
+ createTab('tab' + index);
64
+ }
65
+ //获取呈现元素句柄数组
66
+ var tabHeads = $G("tabHeads").getElementsByTagName("span"),
67
+ tabBodys = $G("tabBodys").getElementsByTagName("div"),
68
+ i = 0, L = tabHeads.length;
69
+ //隐藏所有呈现元素
70
+ for (; i < L; i++) {
71
+ tabHeads[i].className = "";
72
+ tabBodys[i].style.display = "none";
73
+ }
74
+ //显示对应呈现元素
75
+ tabHeads[index].className = "focus";
76
+ tabBodys[index].style.display = "block";
77
+ }
78
+
79
+ function autoHeight(index) {
80
+ var iframe = dialog.getDom("iframe"),
81
+ parent = iframe.parentNode.parentNode;
82
+ switch (index) {
83
+ case 0:
84
+ iframe.style.height = "380px";
85
+ parent.style.height = "392px";
86
+ break;
87
+ case 1:
88
+ iframe.style.height = "220px";
89
+ parent.style.height = "232px";
90
+ break;
91
+ case 2:
92
+ iframe.style.height = "260px";
93
+ parent.style.height = "272px";
94
+ break;
95
+ case 3:
96
+ iframe.style.height = "300px";
97
+ parent.style.height = "312px";
98
+ break;
99
+ case 4:
100
+ iframe.style.height = "140px";
101
+ parent.style.height = "152px";
102
+ break;
103
+ case 5:
104
+ iframe.style.height = "260px";
105
+ parent.style.height = "272px";
106
+ break;
107
+ case 6:
108
+ iframe.style.height = "230px";
109
+ parent.style.height = "242px";
110
+ break;
111
+ default:
112
+
113
+ }
114
+ }
115
+
116
+
117
+ function createTab(tabName) {
118
+ var faceVersion = "?v=1.1", //版本号
119
+ tab = $G(tabName), //获取将要生成的Div句柄
120
+ imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径
121
+ positionLine = 11 / 2, //中间数
122
+ iWidth = iHeight = 35, //图片长宽
123
+ iColWidth = 3, //表格剩余空间的显示比例
124
+ tableCss = emotion.imageCss[tabName],
125
+ cssOffset = emotion.imageCssOffset[tabName],
126
+ textHTML = ['<table class="smileytable">'],
127
+ i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage,
128
+ sUrl, realUrl, posflag, offset, infor;
129
+
130
+ for (; i < imgNum;) {
131
+ textHTML.push('<tr>');
132
+ for (var j = 0; j < imgColNum; j++, i++) {
133
+ faceImage = emotion.SmileyBox[tabName][i];
134
+ if (faceImage) {
135
+ sUrl = imagePath + faceImage + faceVersion;
136
+ realUrl = imagePath + faceImage;
137
+ posflag = j < positionLine ? 0 : 1;
138
+ offset = cssOffset * i * (-1) - 1;
139
+ infor = emotion.SmileyInfor[tabName][i];
140
+
141
+ textHTML.push('<td class="' + tableCss + '" border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center" bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace(/'/g, "\\'") + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">');
142
+ textHTML.push('<span>');
143
+ textHTML.push('<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>');
144
+ textHTML.push('</span>');
145
+ } else {
146
+ textHTML.push('<td width="' + iColWidth + '%" bgcolor="#FFFFFF">');
147
+ }
148
+ textHTML.push('</td>');
149
+ }
150
+ textHTML.push('</tr>');
151
+ }
152
+ textHTML.push('</table>');
153
+ textHTML = textHTML.join("");
154
+ tab.innerHTML = textHTML;
155
+ }
156
+
157
+ function over(td, srcPath, posFlag) {
158
+ td.style.backgroundColor = "#ACCD3C";
159
+ $G('faceReview').style.backgroundImage = "url(" + srcPath + ")";
160
+ if (posFlag == 1) $G("tabIconReview").className = "show";
161
+ $G("tabIconReview").style.display = 'block';
162
+ }
163
+
164
+ function out(td) {
165
+ td.style.backgroundColor = "transparent";
166
+ var tabIconRevew = $G("tabIconReview");
167
+ tabIconRevew.className = "";
168
+ tabIconRevew.style.display = 'none';
169
+ }
170
+
171
+ function createTabList(tabNum) {
172
+ var obj = {};
173
+ for (var i = 0; i < tabNum; i++) {
174
+ obj["tab" + i] = [];
175
+ }
176
+ return obj;
177
+ }
178
+
179
+ function createArr(tabNum) {
180
+ var arr = [];
181
+ for (var i = 0; i < tabNum; i++) {
182
+ arr[i] = 0;
183
+ }
184
+ return arr;
185
+ }
186
+
@@ -1,98 +1,98 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <title></title>
5
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
6
- <script type="text/javascript" src="../internal.js?32939b8e"></script>
7
- <style type="text/css">
8
- .wrapper {
9
- box-sizing: border-box;
10
- width: 800px;
11
- height: 390px;
12
- overflow: hidden;
13
- position: relative;
14
- border-bottom: 1px solid #d7d7d7
15
- }
16
-
17
- .editor-wrap {
18
- display: flex;
19
- margin: 10px;
20
- }
21
-
22
- .editor-wrap #editor {
23
- width: 0;
24
- flex-grow: 1;
25
- border: 1px solid #CCC;
26
- border-radius: 3px;
27
- padding: 5px;
28
- height: 100px;
29
- outline: none;
30
- }
31
-
32
- .input-tip {
33
- margin: 10px;
34
- }
35
-
36
- .input-tip a {
37
- color: #0f0d0d;
38
- }
39
-
40
- .editor-preview {
41
- background: #FFF;
42
- border-radius: 3px;
43
- border: 1px solid #EEE;
44
- display: none;
45
- margin: 10px;
46
- }
47
-
48
- .editor-preview .title {
49
- padding: 5px;
50
- }
51
-
52
- .editor-preview .body {
53
- padding: 5px 5px 15px 5px;
54
- text-align: center;
55
- }
56
-
57
- .editor-preview .body .image {
58
- max-width: 100%;
59
- max-height: 100px;
60
- }
61
- </style>
62
- </head>
63
- <body>
64
- <div class="wrapper">
65
-
66
- <div id="modeLive" style="display:none;">
67
- <iframe id="liveEditor"
68
- frameborder="0"
69
- style="width:800px;height:390px;border: 0;outline: none;"
70
- ></iframe>
71
- </div>
72
-
73
- <div id="modePlain" style="display:none;">
74
- <div class="editor-wrap">
75
- <textarea id="editor"></textarea>
76
- </div>
77
- <div class="input-tip">
78
- 基于 latex 语法,<a href="javascript:;" id="inputDemo">点击输入示例</a>。
79
- </div>
80
- <div class="editor-preview" id="preview">
81
- <div class="title">预览</div>
82
- <div class="body">
83
- <img class="image" id="previewImage"/>
84
- </div>
85
- </div>
86
- </div>
87
-
88
- </div>
89
- <script src="../../third-party/jquery-3.5.1.js?89c36344"></script>
90
- <script type="text/javascript" src="../../third-party/clipboard/clipboard.js?7af7cd91"></script>
91
- <script type="text/javascript" src="formula.js?7f236295"></script>
92
- <script type="text/javascript">
93
- utils.domReady(function () {
94
- Formula.init();
95
- });
96
- </script>
97
- </body>
98
- </html>
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
6
+ <script type="text/javascript" src="../internal.js?aea0c61c"></script>
7
+ <style type="text/css">
8
+ .wrapper {
9
+ box-sizing: border-box;
10
+ width: 800px;
11
+ height: 390px;
12
+ overflow: hidden;
13
+ position: relative;
14
+ border-bottom: 1px solid #d7d7d7
15
+ }
16
+
17
+ .editor-wrap {
18
+ display: flex;
19
+ margin: 10px;
20
+ }
21
+
22
+ .editor-wrap #editor {
23
+ width: 0;
24
+ flex-grow: 1;
25
+ border: 1px solid #CCC;
26
+ border-radius: 3px;
27
+ padding: 5px;
28
+ height: 100px;
29
+ outline: none;
30
+ }
31
+
32
+ .input-tip {
33
+ margin: 10px;
34
+ }
35
+
36
+ .input-tip a {
37
+ color: #0f0d0d;
38
+ }
39
+
40
+ .editor-preview {
41
+ background: #FFF;
42
+ border-radius: 3px;
43
+ border: 1px solid #EEE;
44
+ display: none;
45
+ margin: 10px;
46
+ }
47
+
48
+ .editor-preview .title {
49
+ padding: 5px;
50
+ }
51
+
52
+ .editor-preview .body {
53
+ padding: 5px 5px 15px 5px;
54
+ text-align: center;
55
+ }
56
+
57
+ .editor-preview .body .image {
58
+ max-width: 100%;
59
+ max-height: 100px;
60
+ }
61
+ </style>
62
+ </head>
63
+ <body>
64
+ <div class="wrapper">
65
+
66
+ <div id="modeLive" style="display:none;">
67
+ <iframe id="liveEditor"
68
+ frameborder="0"
69
+ style="width:800px;height:390px;border: 0;outline: none;"
70
+ ></iframe>
71
+ </div>
72
+
73
+ <div id="modePlain" style="display:none;">
74
+ <div class="editor-wrap">
75
+ <textarea id="editor"></textarea>
76
+ </div>
77
+ <div class="input-tip">
78
+ 基于 latex 语法,<a href="javascript:;" id="inputDemo">点击输入示例</a>。
79
+ </div>
80
+ <div class="editor-preview" id="preview">
81
+ <div class="title">预览</div>
82
+ <div class="body">
83
+ <img class="image" id="previewImage"/>
84
+ </div>
85
+ </div>
86
+ </div>
87
+
88
+ </div>
89
+ <script src="../../third-party/jquery-3.5.1.js?064a9f9e"></script>
90
+ <script type="text/javascript" src="../../third-party/clipboard/clipboard.js?555edf0a"></script>
91
+ <script type="text/javascript" src="formula.js?8fdd0a42"></script>
92
+ <script type="text/javascript">
93
+ utils.domReady(function () {
94
+ Formula.init();
95
+ });
96
+ </script>
97
+ </body>
98
+ </html>