@lingxiteam/lcdp-ueditor-react 1.0.3-alpha.4 → 1.0.3-alpha.6

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.js +52 -40
  2. package/es/const.js +4 -4
  3. package/es/defaultConfig.json +76 -76
  4. package/es/tools/UeditorResourceLoader.js +6 -6
  5. package/es/tools/loadScript.js +3 -3
  6. package/lib/LcdpUeditor.js +16 -5
  7. package/lib/defaultConfig.json +76 -76
  8. package/package.json +35 -35
  9. package/ueditor-resource/dialogs/anchor/anchor.html +62 -62
  10. package/ueditor-resource/dialogs/attachment/attachment.css +2 -2
  11. package/ueditor-resource/dialogs/attachment/attachment.html +61 -61
  12. package/ueditor-resource/dialogs/audio/audio.css +2 -2
  13. package/ueditor-resource/dialogs/audio/audio.html +93 -93
  14. package/ueditor-resource/dialogs/background/background.css +2 -2
  15. package/ueditor-resource/dialogs/background/background.html +59 -59
  16. package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -176
  17. package/ueditor-resource/dialogs/emotion/emotion.css +2 -2
  18. package/ueditor-resource/dialogs/emotion/emotion.html +70 -70
  19. package/ueditor-resource/dialogs/formula/formula.html +98 -98
  20. package/ueditor-resource/dialogs/help/help.css +2 -2
  21. package/ueditor-resource/dialogs/help/help.html +82 -82
  22. package/ueditor-resource/dialogs/image/image.css +2 -2
  23. package/ueditor-resource/dialogs/image/image.html +144 -144
  24. package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -135
  25. package/ueditor-resource/dialogs/link/link.html +148 -148
  26. package/ueditor-resource/dialogs/preview/preview.html +45 -45
  27. package/ueditor-resource/dialogs/scrawl/scrawl.css +2 -2
  28. package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -95
  29. package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -144
  30. package/ueditor-resource/dialogs/spechars/spechars.html +42 -42
  31. package/ueditor-resource/dialogs/table/edittable.css +2 -2
  32. package/ueditor-resource/dialogs/table/edittable.html +69 -69
  33. package/ueditor-resource/dialogs/table/edittd.html +62 -62
  34. package/ueditor-resource/dialogs/table/edittip.html +33 -33
  35. package/ueditor-resource/dialogs/template/template.css +2 -2
  36. package/ueditor-resource/dialogs/template/template.html +26 -26
  37. package/ueditor-resource/dialogs/video/video.css +2 -2
  38. package/ueditor-resource/dialogs/video/video.html +114 -114
  39. package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -221
  40. package/ueditor-resource/themes/default/css/ueditor.css +2 -2
  41. package/ueditor-resource/themes/default/dialog.css +2 -2
  42. package/ueditor-resource/themes/default/dialogbase.css +2 -2
  43. package/ueditor-resource/themes/default/exts/ai.svg +12 -12
  44. package/ueditor-resource/themes/default/exts/apk.svg +12 -12
  45. package/ueditor-resource/themes/default/exts/chm.svg +12 -12
  46. package/ueditor-resource/themes/default/exts/css.svg +12 -12
  47. package/ueditor-resource/themes/default/exts/doc.svg +22 -22
  48. package/ueditor-resource/themes/default/exts/docx.svg +22 -22
  49. package/ueditor-resource/themes/default/exts/dwg.svg +16 -16
  50. package/ueditor-resource/themes/default/exts/folder.svg +3 -3
  51. package/ueditor-resource/themes/default/exts/gif.svg +14 -14
  52. package/ueditor-resource/themes/default/exts/html.svg +12 -12
  53. package/ueditor-resource/themes/default/exts/jpeg.svg +14 -14
  54. package/ueditor-resource/themes/default/exts/jpg.svg +14 -14
  55. package/ueditor-resource/themes/default/exts/log.svg +12 -12
  56. package/ueditor-resource/themes/default/exts/mp3.svg +14 -14
  57. package/ueditor-resource/themes/default/exts/mp4.svg +12 -12
  58. package/ueditor-resource/themes/default/exts/pdf.svg +14 -14
  59. package/ueditor-resource/themes/default/exts/png.svg +14 -14
  60. package/ueditor-resource/themes/default/exts/ppt.svg +24 -24
  61. package/ueditor-resource/themes/default/exts/pptx.svg +24 -24
  62. package/ueditor-resource/themes/default/exts/psd.svg +12 -12
  63. package/ueditor-resource/themes/default/exts/rar.svg +12 -12
  64. package/ueditor-resource/themes/default/exts/svg.svg +12 -12
  65. package/ueditor-resource/themes/default/exts/torrent.svg +14 -14
  66. package/ueditor-resource/themes/default/exts/txt.svg +14 -14
  67. package/ueditor-resource/themes/default/exts/unknown.svg +12 -12
  68. package/ueditor-resource/themes/default/exts/xls.svg +25 -25
  69. package/ueditor-resource/themes/default/exts/xlsx.svg +25 -25
  70. package/ueditor-resource/themes/default/exts/zip.svg +12 -12
  71. package/ueditor-resource/themes/iframe.css +2 -2
  72. package/ueditor-resource/third-party/SyntaxHighlighter/shCoreDefault.css +2 -2
  73. package/ueditor-resource/third-party/codemirror/codemirror.css +2 -2
  74. package/ueditor-resource/third-party/webuploader/webuploader.css +2 -2
  75. package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1255 -1255
  76. package/ueditor-resource/ueditor.all.js +3 -3
@@ -1,148 +1,148 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
3
- <html>
4
- <head>
5
- <title></title>
6
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
7
- <script type="text/javascript" src="../internal.js?32939b8e"></script>
8
- <style type="text/css">
9
- * {
10
- margin: 0;
11
- padding: 0;
12
- color: #838383;
13
- }
14
-
15
- table {
16
- font-size: 12px;
17
- margin: 10px;
18
- line-height: 36px;
19
- width: 100%;
20
- }
21
-
22
- .txt {
23
- box-sizing: border-box;
24
- width: 90%;
25
- height: 30px;
26
- line-height: 30px;
27
- border: 1px solid #d7d7d7;
28
- border-radius: 3px;
29
- padding: 0 5px;
30
- outline: none;
31
- }
32
- </style>
33
- </head>
34
- <body>
35
- <div style="padding:10px;">
36
- <table>
37
- <tr>
38
- <td><label for="text"> <var id="lang_input_text"></var></label></td>
39
- <td><input class="txt" id="text" type="text" disabled="true"/></td>
40
- </tr>
41
- <tr>
42
- <td><label for="href"> <var id="lang_input_url"></var></label></td>
43
- <td><input class="txt" id="href" type="text"/></td>
44
- </tr>
45
- <tr>
46
- <td><label for="title"> <var id="lang_input_title"></var></label></td>
47
- <td><input class="txt" id="title" type="text"/></td>
48
- </tr>
49
- <tr>
50
- <td colspan="2">
51
- <label for="target"><var id="lang_input_target"></var></label>
52
- <input id="target" type="checkbox"/>
53
- </td>
54
- </tr>
55
- <tr>
56
- <td colspan="2" id="msg"></td>
57
- </tr>
58
- </table>
59
- </div>
60
- <script type="text/javascript">
61
-
62
- editor.setOpt('allowLinkProtocols', ['http:', 'https:', '#', '/', 'ftp:', 'mailto:', 'tel:']);
63
- var allowLinkProtocols = editor.getOpt('allowLinkProtocols');
64
-
65
- var range = editor.selection.getRange(),
66
- link = range.collapsed ? editor.queryCommandValue("link") : editor.selection.getStart(),
67
- url,
68
- text = $G('text'),
69
- rangeLink = domUtils.findParentByTagName(range.getCommonAncestor(), 'a', true),
70
- orgText;
71
-
72
- link = domUtils.findParentByTagName(link, "a", true);
73
-
74
- if (link) {
75
- url = utils.html(link.getAttribute('_href') || link.getAttribute('href', 2));
76
-
77
- if (rangeLink === link && !link.getElementsByTagName('img').length) {
78
- text.removeAttribute('disabled');
79
- orgText = text.value = link[browser.ie ? 'innerText' : 'textContent'];
80
- } else {
81
- text.setAttribute('disabled', 'true');
82
- text.value = lang.validLink;
83
- }
84
-
85
- } else {
86
- if (range.collapsed) {
87
- text.removeAttribute('disabled');
88
- text.value = '';
89
- } else {
90
- text.setAttribute('disabled', 'true');
91
- text.value = lang.validLink;
92
- }
93
-
94
- }
95
- $G("title").value = url ? link.title : "";
96
- $G("href").value = url ? url : '';
97
- $G("target").checked = url && link.target == "_blank" ? true : false;
98
- $focus($G("href"));
99
-
100
- function handleDialogOk() {
101
- var href = $G('href').value.replace(/^\s+|\s+$/g, '');
102
- if (href) {
103
- var obj = {
104
- 'href': href,
105
- 'target': $G("target").checked ? "_blank" : '_self',
106
- 'title': $G("title").value.replace(/^\s+|\s+$/g, ''),
107
- '_href': href,
108
- };
109
- //修改链接内容的情况太特殊了,所以先做到这里了
110
- //todo:情况多的时候,做到command里
111
- if (orgText && text.value != orgText) {
112
- link[browser.ie ? 'innerText' : 'textContent'] = obj.textValue = text.value;
113
- range.selectNode(link).select()
114
- }
115
- if (range.collapsed) {
116
- obj.textValue = text.value;
117
- }
118
- editor.execCommand('link', utils.clearEmptyAttrs(obj));
119
- dialog.close();
120
- }
121
- }
122
-
123
- dialog.onok = handleDialogOk;
124
- $G('href').onkeydown = $G('title').onkeydown = function (evt) {
125
- evt = evt || window.event;
126
- if (evt.keyCode == 13) {
127
- handleDialogOk();
128
- return false;
129
- }
130
- };
131
- $G('href').onblur = function () {
132
-
133
- };
134
-
135
- function hrefStartWith(href, arr) {
136
- href = href.replace(/^\s+|\s+$/g, '');
137
- for (var i = 0, ai; ai = arr[i++];) {
138
- if (href.indexOf(ai) == 0) {
139
- return true;
140
- }
141
- }
142
- return false;
143
- }
144
-
145
-
146
- </script>
147
- </body>
148
- </html>
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
+ "http://www.w3.org/TR/html4/loose.dtd">
3
+ <html>
4
+ <head>
5
+ <title></title>
6
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
7
+ <script type="text/javascript" src="../internal.js?32939b8e"></script>
8
+ <style type="text/css">
9
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ color: #838383;
13
+ }
14
+
15
+ table {
16
+ font-size: 12px;
17
+ margin: 10px;
18
+ line-height: 36px;
19
+ width: 100%;
20
+ }
21
+
22
+ .txt {
23
+ box-sizing: border-box;
24
+ width: 90%;
25
+ height: 30px;
26
+ line-height: 30px;
27
+ border: 1px solid #d7d7d7;
28
+ border-radius: 3px;
29
+ padding: 0 5px;
30
+ outline: none;
31
+ }
32
+ </style>
33
+ </head>
34
+ <body>
35
+ <div style="padding:10px;">
36
+ <table>
37
+ <tr>
38
+ <td><label for="text"> <var id="lang_input_text"></var></label></td>
39
+ <td><input class="txt" id="text" type="text" disabled="true"/></td>
40
+ </tr>
41
+ <tr>
42
+ <td><label for="href"> <var id="lang_input_url"></var></label></td>
43
+ <td><input class="txt" id="href" type="text"/></td>
44
+ </tr>
45
+ <tr>
46
+ <td><label for="title"> <var id="lang_input_title"></var></label></td>
47
+ <td><input class="txt" id="title" type="text"/></td>
48
+ </tr>
49
+ <tr>
50
+ <td colspan="2">
51
+ <label for="target"><var id="lang_input_target"></var></label>
52
+ <input id="target" type="checkbox"/>
53
+ </td>
54
+ </tr>
55
+ <tr>
56
+ <td colspan="2" id="msg"></td>
57
+ </tr>
58
+ </table>
59
+ </div>
60
+ <script type="text/javascript">
61
+
62
+ editor.setOpt('allowLinkProtocols', ['http:', 'https:', '#', '/', 'ftp:', 'mailto:', 'tel:']);
63
+ var allowLinkProtocols = editor.getOpt('allowLinkProtocols');
64
+
65
+ var range = editor.selection.getRange(),
66
+ link = range.collapsed ? editor.queryCommandValue("link") : editor.selection.getStart(),
67
+ url,
68
+ text = $G('text'),
69
+ rangeLink = domUtils.findParentByTagName(range.getCommonAncestor(), 'a', true),
70
+ orgText;
71
+
72
+ link = domUtils.findParentByTagName(link, "a", true);
73
+
74
+ if (link) {
75
+ url = utils.html(link.getAttribute('_href') || link.getAttribute('href', 2));
76
+
77
+ if (rangeLink === link && !link.getElementsByTagName('img').length) {
78
+ text.removeAttribute('disabled');
79
+ orgText = text.value = link[browser.ie ? 'innerText' : 'textContent'];
80
+ } else {
81
+ text.setAttribute('disabled', 'true');
82
+ text.value = lang.validLink;
83
+ }
84
+
85
+ } else {
86
+ if (range.collapsed) {
87
+ text.removeAttribute('disabled');
88
+ text.value = '';
89
+ } else {
90
+ text.setAttribute('disabled', 'true');
91
+ text.value = lang.validLink;
92
+ }
93
+
94
+ }
95
+ $G("title").value = url ? link.title : "";
96
+ $G("href").value = url ? url : '';
97
+ $G("target").checked = url && link.target == "_blank" ? true : false;
98
+ $focus($G("href"));
99
+
100
+ function handleDialogOk() {
101
+ var href = $G('href').value.replace(/^\s+|\s+$/g, '');
102
+ if (href) {
103
+ var obj = {
104
+ 'href': href,
105
+ 'target': $G("target").checked ? "_blank" : '_self',
106
+ 'title': $G("title").value.replace(/^\s+|\s+$/g, ''),
107
+ '_href': href,
108
+ };
109
+ //修改链接内容的情况太特殊了,所以先做到这里了
110
+ //todo:情况多的时候,做到command里
111
+ if (orgText && text.value != orgText) {
112
+ link[browser.ie ? 'innerText' : 'textContent'] = obj.textValue = text.value;
113
+ range.selectNode(link).select()
114
+ }
115
+ if (range.collapsed) {
116
+ obj.textValue = text.value;
117
+ }
118
+ editor.execCommand('link', utils.clearEmptyAttrs(obj));
119
+ dialog.close();
120
+ }
121
+ }
122
+
123
+ dialog.onok = handleDialogOk;
124
+ $G('href').onkeydown = $G('title').onkeydown = function (evt) {
125
+ evt = evt || window.event;
126
+ if (evt.keyCode == 13) {
127
+ handleDialogOk();
128
+ return false;
129
+ }
130
+ };
131
+ $G('href').onblur = function () {
132
+
133
+ };
134
+
135
+ function hrefStartWith(href, arr) {
136
+ href = href.replace(/^\s+|\s+$/g, '');
137
+ for (var i = 0, ai; ai = arr[i++];) {
138
+ if (href.indexOf(ai) == 0) {
139
+ return true;
140
+ }
141
+ }
142
+ return false;
143
+ }
144
+
145
+
146
+ </script>
147
+ </body>
148
+ </html>
@@ -1,45 +1,45 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
3
- <html>
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
- <style>
7
- html, body {
8
- height: 100%;
9
- width: 100%;
10
- padding: 0;
11
- margin: 0;
12
- }
13
-
14
- #preview {
15
- width: 100%;
16
- height: 100%;
17
- padding: 0;
18
- margin: 0;
19
- }
20
-
21
- #preview * {
22
- font-family: sans-serif;
23
- font-size: 16px;
24
- }
25
- </style>
26
- <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
27
- <script src="../../ueditor.parse.js?733c9330"></script>
28
- <title></title>
29
- </head>
30
- <body class="view">
31
- <div id="preview" style="margin:8px">
32
-
33
- </div>
34
- </body>
35
- <script>
36
- document.getElementById('preview').innerHTML = editor.getContent();
37
- uParse('#preview', {
38
- rootPath: '../../',
39
- chartContainerHeight: 500
40
- })
41
- dialog.oncancel = function () {
42
- document.getElementById('preview').innerHTML = '';
43
- }
44
- </script>
45
- </html>
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
+ "http://www.w3.org/TR/html4/loose.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
+ <style>
7
+ html, body {
8
+ height: 100%;
9
+ width: 100%;
10
+ padding: 0;
11
+ margin: 0;
12
+ }
13
+
14
+ #preview {
15
+ width: 100%;
16
+ height: 100%;
17
+ padding: 0;
18
+ margin: 0;
19
+ }
20
+
21
+ #preview * {
22
+ font-family: sans-serif;
23
+ font-size: 16px;
24
+ }
25
+ </style>
26
+ <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
27
+ <script src="../../ueditor.parse.js?733c9330"></script>
28
+ <title></title>
29
+ </head>
30
+ <body class="view">
31
+ <div id="preview" style="margin:8px">
32
+
33
+ </div>
34
+ </body>
35
+ <script>
36
+ document.getElementById('preview').innerHTML = editor.getContent();
37
+ uParse('#preview', {
38
+ rootPath: '../../',
39
+ chartContainerHeight: 500
40
+ })
41
+ dialog.oncancel = function () {
42
+ document.getElementById('preview').innerHTML = '';
43
+ }
44
+ </script>
45
+ </html>
@@ -1,3 +1,3 @@
1
- /*! UEditorPlus v2.0.0*/
2
-
1
+ /*! UEditorPlus v2.0.0*/
2
+
3
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)}
@@ -1,95 +1,95 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title></title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
- <meta name="robots" content="noindex, nofollow"/>
7
- <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
8
- <link rel="stylesheet" type="text/css" href="scrawl.css?2a5a06d6">
9
- </head>
10
- <body>
11
- <div class="main" id="J_wrap">
12
- <div class="hot">
13
- <div class="drawBoard border_style1">
14
- <canvas id="J_brushBoard" class="brushBorad" width="360" height="300"></canvas>
15
- <div id="J_picBoard" class="picBoard" style="width: 360px;height: 300px"></div>
16
- </div>
17
- <div id="J_operateBar" class="operateBar">
18
- <span id="J_previousStep" class="previousStep">
19
- <em class="icon"></em>
20
- <em class="text"><var id="lang_input_previousStep"></var></em>
21
- </span>
22
- <span id="J_nextStep" class="nextStep">
23
- <em class="icon"></em>
24
- <em class="text"><var id="lang_input_nextsStep"></var></em>
25
- </span>
26
- <span id="J_clearBoard" class="clearBoard">
27
- <em class="icon"></em>
28
- <em class="text"><var id="lang_input_clear"></var></em>
29
- </span>
30
- <span id="J_sacleBoard" class="scaleBoard">
31
- <em class="icon"></em>
32
- <em class="text"><var id="lang_input_ScalePic"></var></em>
33
- </span>
34
- </div>
35
- </div>
36
- <div class="drawToolbar border_style1">
37
- <div id="J_colorBar" class="colorBar"></div>
38
- <div id="J_brushBar" class="sectionBar">
39
- <em class="brushIcon"></em>
40
- <a href="javascript:void(0)" class="size1">1</a>
41
- <a href="javascript:void(0)" class="size2">3</a>
42
- <a href="javascript:void(0)" class="size3">5</a>
43
- <a href="javascript:void(0)" class="size4">7</a>
44
- </div>
45
- <div id="J_eraserBar" class="sectionBar">
46
- <em class="eraserIcon"></em>
47
- <a href="javascript:void(0)" class="size1">1</a>
48
- <a href="javascript:void(0)" class="size2">3</a>
49
- <a href="javascript:void(0)" class="size3">5</a>
50
- <a href="javascript:void(0)" class="size4">7</a>
51
- </div>
52
- <div class="sectionBar">
53
- <div id="J_addImg" class="addImgH">
54
- <em class="icon"></em>
55
- <em class="text"><var id="lang_input_addPic"></var></em>
56
- <form method="post" id="fileForm" enctype="multipart/form-data" class="addImgH_form" target="up">
57
- <input type="file" name="upfile" id="J_imgTxt"
58
- accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>
59
- </form>
60
- <iframe name="up" style="display: none"></iframe>
61
- </div>
62
- </div>
63
- <div class="sectionBar">
64
- <span id="J_removeImg" class="removeImg">
65
- <em class="icon"></em>
66
- <em class="text"><var id="lang_input_removePic"></var></em>
67
- </span>
68
- </div>
69
- </div>
70
- </div>
71
- <div id="J_maskLayer" class="maskLayerNull"></div>
72
-
73
- <script type="text/javascript" src="scrawl.js?eb98629c"></script>
74
- <script type="text/javascript">
75
- var settings = {
76
- drawBrushSize: 3, //画笔初始大小
77
- drawBrushColor: "#4bacc6", //画笔初始颜色
78
- colorList: ['c00000', 'ff0000', 'ffc000', 'ffff00', '92d050', '00b050', '00b0f0', '0070c0', '002060', '7030a0', 'ffffff',
79
- '000000', 'eeece1', '1f497d', '4f81bd', 'c0504d', '9bbb59', '8064a2', '4bacc6', 'f79646'], //画笔选择颜色
80
- saveNum: 10 //撤销次数
81
- };
82
-
83
- var scrawlObj = new scrawl(settings);
84
- scrawlObj.isCancelScrawl = false;
85
-
86
- dialog.onok = function () {
87
- exec(scrawlObj);
88
- return false;
89
- };
90
- dialog.oncancel = function () {
91
- scrawlObj.isCancelScrawl = true;
92
- };
93
- </script>
94
- </body>
95
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
+ <meta name="robots" content="noindex, nofollow"/>
7
+ <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
8
+ <link rel="stylesheet" type="text/css" href="scrawl.css?dce615c7">
9
+ </head>
10
+ <body>
11
+ <div class="main" id="J_wrap">
12
+ <div class="hot">
13
+ <div class="drawBoard border_style1">
14
+ <canvas id="J_brushBoard" class="brushBorad" width="360" height="300"></canvas>
15
+ <div id="J_picBoard" class="picBoard" style="width: 360px;height: 300px"></div>
16
+ </div>
17
+ <div id="J_operateBar" class="operateBar">
18
+ <span id="J_previousStep" class="previousStep">
19
+ <em class="icon"></em>
20
+ <em class="text"><var id="lang_input_previousStep"></var></em>
21
+ </span>
22
+ <span id="J_nextStep" class="nextStep">
23
+ <em class="icon"></em>
24
+ <em class="text"><var id="lang_input_nextsStep"></var></em>
25
+ </span>
26
+ <span id="J_clearBoard" class="clearBoard">
27
+ <em class="icon"></em>
28
+ <em class="text"><var id="lang_input_clear"></var></em>
29
+ </span>
30
+ <span id="J_sacleBoard" class="scaleBoard">
31
+ <em class="icon"></em>
32
+ <em class="text"><var id="lang_input_ScalePic"></var></em>
33
+ </span>
34
+ </div>
35
+ </div>
36
+ <div class="drawToolbar border_style1">
37
+ <div id="J_colorBar" class="colorBar"></div>
38
+ <div id="J_brushBar" class="sectionBar">
39
+ <em class="brushIcon"></em>
40
+ <a href="javascript:void(0)" class="size1">1</a>
41
+ <a href="javascript:void(0)" class="size2">3</a>
42
+ <a href="javascript:void(0)" class="size3">5</a>
43
+ <a href="javascript:void(0)" class="size4">7</a>
44
+ </div>
45
+ <div id="J_eraserBar" class="sectionBar">
46
+ <em class="eraserIcon"></em>
47
+ <a href="javascript:void(0)" class="size1">1</a>
48
+ <a href="javascript:void(0)" class="size2">3</a>
49
+ <a href="javascript:void(0)" class="size3">5</a>
50
+ <a href="javascript:void(0)" class="size4">7</a>
51
+ </div>
52
+ <div class="sectionBar">
53
+ <div id="J_addImg" class="addImgH">
54
+ <em class="icon"></em>
55
+ <em class="text"><var id="lang_input_addPic"></var></em>
56
+ <form method="post" id="fileForm" enctype="multipart/form-data" class="addImgH_form" target="up">
57
+ <input type="file" name="upfile" id="J_imgTxt"
58
+ accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>
59
+ </form>
60
+ <iframe name="up" style="display: none"></iframe>
61
+ </div>
62
+ </div>
63
+ <div class="sectionBar">
64
+ <span id="J_removeImg" class="removeImg">
65
+ <em class="icon"></em>
66
+ <em class="text"><var id="lang_input_removePic"></var></em>
67
+ </span>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div id="J_maskLayer" class="maskLayerNull"></div>
72
+
73
+ <script type="text/javascript" src="scrawl.js?eb98629c"></script>
74
+ <script type="text/javascript">
75
+ var settings = {
76
+ drawBrushSize: 3, //画笔初始大小
77
+ drawBrushColor: "#4bacc6", //画笔初始颜色
78
+ colorList: ['c00000', 'ff0000', 'ffc000', 'ffff00', '92d050', '00b050', '00b0f0', '0070c0', '002060', '7030a0', 'ffffff',
79
+ '000000', 'eeece1', '1f497d', '4f81bd', 'c0504d', '9bbb59', '8064a2', '4bacc6', 'f79646'], //画笔选择颜色
80
+ saveNum: 10 //撤销次数
81
+ };
82
+
83
+ var scrawlObj = new scrawl(settings);
84
+ scrawlObj.isCancelScrawl = false;
85
+
86
+ dialog.onok = function () {
87
+ exec(scrawlObj);
88
+ return false;
89
+ };
90
+ dialog.oncancel = function () {
91
+ scrawlObj.isCancelScrawl = true;
92
+ };
93
+ </script>
94
+ </body>
95
+ </html>