@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.
- package/es/LcdpUeditor.js +52 -40
- 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/LcdpUeditor.js +16 -5
- package/lib/defaultConfig.json +76 -76
- package/package.json +35 -35
- package/ueditor-resource/dialogs/anchor/anchor.html +62 -62
- package/ueditor-resource/dialogs/attachment/attachment.css +2 -2
- package/ueditor-resource/dialogs/attachment/attachment.html +61 -61
- package/ueditor-resource/dialogs/audio/audio.css +2 -2
- package/ueditor-resource/dialogs/audio/audio.html +93 -93
- package/ueditor-resource/dialogs/background/background.css +2 -2
- package/ueditor-resource/dialogs/background/background.html +59 -59
- package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -176
- package/ueditor-resource/dialogs/emotion/emotion.css +2 -2
- package/ueditor-resource/dialogs/emotion/emotion.html +70 -70
- package/ueditor-resource/dialogs/formula/formula.html +98 -98
- package/ueditor-resource/dialogs/help/help.css +2 -2
- package/ueditor-resource/dialogs/help/help.html +82 -82
- package/ueditor-resource/dialogs/image/image.css +2 -2
- package/ueditor-resource/dialogs/image/image.html +144 -144
- package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -135
- 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 +2 -2
- package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -95
- package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -144
- package/ueditor-resource/dialogs/spechars/spechars.html +42 -42
- package/ueditor-resource/dialogs/table/edittable.css +2 -2
- package/ueditor-resource/dialogs/table/edittable.html +69 -69
- package/ueditor-resource/dialogs/table/edittd.html +62 -62
- package/ueditor-resource/dialogs/table/edittip.html +33 -33
- package/ueditor-resource/dialogs/template/template.css +2 -2
- package/ueditor-resource/dialogs/template/template.html +26 -26
- package/ueditor-resource/dialogs/video/video.css +2 -2
- package/ueditor-resource/dialogs/video/video.html +114 -114
- package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -221
- package/ueditor-resource/themes/default/css/ueditor.css +2 -2
- package/ueditor-resource/themes/default/dialog.css +2 -2
- package/ueditor-resource/themes/default/dialogbase.css +2 -2
- 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 +2 -2
- package/ueditor-resource/third-party/SyntaxHighlighter/shCoreDefault.css +2 -2
- package/ueditor-resource/third-party/codemirror/codemirror.css +2 -2
- package/ueditor-resource/third-party/webuploader/webuploader.css +2 -2
- package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1255 -1255
- package/ueditor-resource/ueditor.all.js +3 -3
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<title>ueditor图片对话框</title>
|
|
7
|
-
<script type="text/javascript" src="../internal.js?32939b8e"></script>
|
|
8
|
-
|
|
9
|
-
<!-- jquery -->
|
|
10
|
-
<script type="text/javascript" src="../../third-party/jquery-3.5.1.js?89c36344"></script>
|
|
11
|
-
|
|
12
|
-
<!-- webuploader -->
|
|
13
|
-
<script src="../../third-party/webuploader/webuploader.js?f37088cc"></script>
|
|
14
|
-
<link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css?0057c5c7">
|
|
15
|
-
|
|
16
|
-
<!-- image dialog -->
|
|
17
|
-
<link rel="stylesheet" href="image.css?0ad92e11" type="text/css" />
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body>
|
|
21
|
-
|
|
22
|
-
<div class="wrapper">
|
|
23
|
-
<div id="tabhead" class="tabhead" style="display: none;">
|
|
24
|
-
<span class="tab focus" data-content-id="remote"><var id="lang_tab_remote"></var></span>
|
|
25
|
-
<span style="display:none;" class="tab" data-content-id="upload"><var id="lang_tab_upload"></var></span>
|
|
26
|
-
<span style="display:none;" class="tab" data-content-id="online"><var id="lang_tab_online"></var></span>
|
|
27
|
-
</div>
|
|
28
|
-
<!-- <div class="alignBar" style="display: none;">
|
|
29
|
-
<label class="algnLabel"><var id="lang_input_align"></var></label>
|
|
30
|
-
<span id="alignIcon">
|
|
31
|
-
<span id="noneAlign" class="none-align focus" data-align="none"></span>
|
|
32
|
-
<span id="leftAlign" class="left-align" data-align="left"></span>
|
|
33
|
-
<span id="rightAlign" class="right-align" data-align="right"></span>
|
|
34
|
-
<span id="centerAlign" class="center-align" data-align="center"></span>
|
|
35
|
-
</span>
|
|
36
|
-
<input id="align" name="align" type="hidden" value="none" />
|
|
37
|
-
</div> -->
|
|
38
|
-
<div id="tabbody" class="tabbody">
|
|
39
|
-
|
|
40
|
-
<!-- 远程图片 -->
|
|
41
|
-
<div id="remote" class="panel">
|
|
42
|
-
<div class="top">
|
|
43
|
-
<div class="row">
|
|
44
|
-
<label for="url"><var id="lang_input_url"></var></label>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="row row-flex">
|
|
47
|
-
<span style="flex: 1; margin-right: 20px;">
|
|
48
|
-
<input class="text" id="url" type="text" />
|
|
49
|
-
</span>
|
|
50
|
-
<a href="javascript:;" id="imageSelect" style="display:none;">选择图片</a>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="row-flex flex-start container-box">
|
|
54
|
-
<div class="left">
|
|
55
|
-
<div id="preview"></div>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="right col-flex flex-start">
|
|
58
|
-
<div class="col-flex flex-start padding-8">
|
|
59
|
-
<var id="lang_input_width"> </var>
|
|
60
|
-
<input class="text" type="text" id="width" />
|
|
61
|
-
</div>
|
|
62
|
-
<div class="col-flex flex-start padding-8">
|
|
63
|
-
<var id="lang_input_height"> </var>
|
|
64
|
-
<input class="text" type="text" id="height" />
|
|
65
|
-
</div>
|
|
66
|
-
<div class="alignBar col-flex flex-start padding-8">
|
|
67
|
-
<label class="algnLabel"><var id="lang_input_align"></var></label>
|
|
68
|
-
<span id="alignIcon">
|
|
69
|
-
<span id="noneAlign" class="none-align focus" data-align="none"></span>
|
|
70
|
-
<span id="leftAlign" class="left-align" data-align="left"></span>
|
|
71
|
-
<span id="rightAlign" class="right-align" data-align="right"></span>
|
|
72
|
-
<span id="centerAlign" class="center-align" data-align="center"></span>
|
|
73
|
-
</span>
|
|
74
|
-
<input id="align" name="align" type="hidden" value="none" />
|
|
75
|
-
</div>
|
|
76
|
-
<div class="col-flex flex-start padding-8">
|
|
77
|
-
<label><var id="lang_input_border"></var></label>
|
|
78
|
-
<span><input class="text" type="text" id="border" /> </span>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-flex flex-start padding-8">
|
|
81
|
-
<label><var id="lang_input_vhspace"></var></label>
|
|
82
|
-
<span><input class="text" type="text" id="vhSpace" /> </span>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-flex flex-start padding-8" style="display: none;">
|
|
85
|
-
<label><var id="lang_input_title"></var></label>
|
|
86
|
-
<span><input class="text" type="text" id="title" /></span>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
|
|
92
|
-
<!-- 上传图片 -->
|
|
93
|
-
<div id="upload" class="panel focus">
|
|
94
|
-
<div id="queueList" class="queueList">
|
|
95
|
-
<div class="statusBar element-invisible">
|
|
96
|
-
<div class="progress">
|
|
97
|
-
<span class="text">0%</span>
|
|
98
|
-
<span class="percentage"></span>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="info"></div>
|
|
101
|
-
<div class="btns">
|
|
102
|
-
<div id="filePickerBtn"></div>
|
|
103
|
-
<div class="uploadBtn"><var id="lang_start_upload"></var></div>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
<div id="dndArea" class="placeholder">
|
|
107
|
-
<div class="filePickerContainer">
|
|
108
|
-
<div id="filePickerReady"></div>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
<ul class="filelist element-invisible">
|
|
112
|
-
<li id="filePickerBlock" class="filePickerBlock"></li>
|
|
113
|
-
</ul>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
|
|
117
|
-
<!-- 在线图片 -->
|
|
118
|
-
<div id="online" class="panel">
|
|
119
|
-
<div id="imageList"><var id="lang_imgLoading"></var></div>
|
|
120
|
-
</div>
|
|
121
|
-
|
|
122
|
-
<!-- 搜索图片 -->
|
|
123
|
-
<div id="search" class="panel">
|
|
124
|
-
<div class="searchBar">
|
|
125
|
-
<input id="searchTxt" class="searchTxt text" type="text" />
|
|
126
|
-
<select id="searchType" class="searchType">
|
|
127
|
-
<option value="&s=4&z=0"></option>
|
|
128
|
-
<option value="&s=1&z=19"></option>
|
|
129
|
-
<option value="&s=2&z=0"></option>
|
|
130
|
-
<option value="&s=3&z=0"></option>
|
|
131
|
-
</select>
|
|
132
|
-
<input id="searchReset" type="button" />
|
|
133
|
-
<input id="searchBtn" type="button" />
|
|
134
|
-
</div>
|
|
135
|
-
<div id="searchList" class="searchList">
|
|
136
|
-
<ul id="searchListUl"></ul>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
<script type="text/javascript" src="image.js?cd4dbddf"></script>
|
|
143
|
-
</body>
|
|
144
|
-
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<title>ueditor图片对话框</title>
|
|
7
|
+
<script type="text/javascript" src="../internal.js?32939b8e"></script>
|
|
8
|
+
|
|
9
|
+
<!-- jquery -->
|
|
10
|
+
<script type="text/javascript" src="../../third-party/jquery-3.5.1.js?89c36344"></script>
|
|
11
|
+
|
|
12
|
+
<!-- webuploader -->
|
|
13
|
+
<script src="../../third-party/webuploader/webuploader.js?f37088cc"></script>
|
|
14
|
+
<link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css?0057c5c7">
|
|
15
|
+
|
|
16
|
+
<!-- image dialog -->
|
|
17
|
+
<link rel="stylesheet" href="image.css?0ad92e11" type="text/css" />
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body>
|
|
21
|
+
|
|
22
|
+
<div class="wrapper">
|
|
23
|
+
<div id="tabhead" class="tabhead" style="display: none;">
|
|
24
|
+
<span class="tab focus" data-content-id="remote"><var id="lang_tab_remote"></var></span>
|
|
25
|
+
<span style="display:none;" class="tab" data-content-id="upload"><var id="lang_tab_upload"></var></span>
|
|
26
|
+
<span style="display:none;" class="tab" data-content-id="online"><var id="lang_tab_online"></var></span>
|
|
27
|
+
</div>
|
|
28
|
+
<!-- <div class="alignBar" style="display: none;">
|
|
29
|
+
<label class="algnLabel"><var id="lang_input_align"></var></label>
|
|
30
|
+
<span id="alignIcon">
|
|
31
|
+
<span id="noneAlign" class="none-align focus" data-align="none"></span>
|
|
32
|
+
<span id="leftAlign" class="left-align" data-align="left"></span>
|
|
33
|
+
<span id="rightAlign" class="right-align" data-align="right"></span>
|
|
34
|
+
<span id="centerAlign" class="center-align" data-align="center"></span>
|
|
35
|
+
</span>
|
|
36
|
+
<input id="align" name="align" type="hidden" value="none" />
|
|
37
|
+
</div> -->
|
|
38
|
+
<div id="tabbody" class="tabbody">
|
|
39
|
+
|
|
40
|
+
<!-- 远程图片 -->
|
|
41
|
+
<div id="remote" class="panel">
|
|
42
|
+
<div class="top">
|
|
43
|
+
<div class="row">
|
|
44
|
+
<label for="url"><var id="lang_input_url"></var></label>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="row row-flex">
|
|
47
|
+
<span style="flex: 1; margin-right: 20px;">
|
|
48
|
+
<input class="text" id="url" type="text" />
|
|
49
|
+
</span>
|
|
50
|
+
<a href="javascript:;" id="imageSelect" style="display:none;">选择图片</a>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="row-flex flex-start container-box">
|
|
54
|
+
<div class="left">
|
|
55
|
+
<div id="preview"></div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="right col-flex flex-start">
|
|
58
|
+
<div class="col-flex flex-start padding-8">
|
|
59
|
+
<var id="lang_input_width"> </var>
|
|
60
|
+
<input class="text" type="text" id="width" />
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-flex flex-start padding-8">
|
|
63
|
+
<var id="lang_input_height"> </var>
|
|
64
|
+
<input class="text" type="text" id="height" />
|
|
65
|
+
</div>
|
|
66
|
+
<div class="alignBar col-flex flex-start padding-8">
|
|
67
|
+
<label class="algnLabel"><var id="lang_input_align"></var></label>
|
|
68
|
+
<span id="alignIcon">
|
|
69
|
+
<span id="noneAlign" class="none-align focus" data-align="none"></span>
|
|
70
|
+
<span id="leftAlign" class="left-align" data-align="left"></span>
|
|
71
|
+
<span id="rightAlign" class="right-align" data-align="right"></span>
|
|
72
|
+
<span id="centerAlign" class="center-align" data-align="center"></span>
|
|
73
|
+
</span>
|
|
74
|
+
<input id="align" name="align" type="hidden" value="none" />
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-flex flex-start padding-8">
|
|
77
|
+
<label><var id="lang_input_border"></var></label>
|
|
78
|
+
<span><input class="text" type="text" id="border" /> </span>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-flex flex-start padding-8">
|
|
81
|
+
<label><var id="lang_input_vhspace"></var></label>
|
|
82
|
+
<span><input class="text" type="text" id="vhSpace" /> </span>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-flex flex-start padding-8" style="display: none;">
|
|
85
|
+
<label><var id="lang_input_title"></var></label>
|
|
86
|
+
<span><input class="text" type="text" id="title" /></span>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<!-- 上传图片 -->
|
|
93
|
+
<div id="upload" class="panel focus">
|
|
94
|
+
<div id="queueList" class="queueList">
|
|
95
|
+
<div class="statusBar element-invisible">
|
|
96
|
+
<div class="progress">
|
|
97
|
+
<span class="text">0%</span>
|
|
98
|
+
<span class="percentage"></span>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="info"></div>
|
|
101
|
+
<div class="btns">
|
|
102
|
+
<div id="filePickerBtn"></div>
|
|
103
|
+
<div class="uploadBtn"><var id="lang_start_upload"></var></div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<div id="dndArea" class="placeholder">
|
|
107
|
+
<div class="filePickerContainer">
|
|
108
|
+
<div id="filePickerReady"></div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<ul class="filelist element-invisible">
|
|
112
|
+
<li id="filePickerBlock" class="filePickerBlock"></li>
|
|
113
|
+
</ul>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<!-- 在线图片 -->
|
|
118
|
+
<div id="online" class="panel">
|
|
119
|
+
<div id="imageList"><var id="lang_imgLoading"></var></div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<!-- 搜索图片 -->
|
|
123
|
+
<div id="search" class="panel">
|
|
124
|
+
<div class="searchBar">
|
|
125
|
+
<input id="searchTxt" class="searchTxt text" type="text" />
|
|
126
|
+
<select id="searchType" class="searchType">
|
|
127
|
+
<option value="&s=4&z=0"></option>
|
|
128
|
+
<option value="&s=1&z=19"></option>
|
|
129
|
+
<option value="&s=2&z=0"></option>
|
|
130
|
+
<option value="&s=3&z=0"></option>
|
|
131
|
+
</select>
|
|
132
|
+
<input id="searchReset" type="button" />
|
|
133
|
+
<input id="searchBtn" type="button" />
|
|
134
|
+
</div>
|
|
135
|
+
<div id="searchList" class="searchList">
|
|
136
|
+
<ul id="searchListUl"></ul>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
<script type="text/javascript" src="image.js?cd4dbddf"></script>
|
|
143
|
+
</body>
|
|
144
|
+
|
|
145
145
|
</html>
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
-
<title></title>
|
|
6
|
-
<script type="text/javascript" src="../internal.js?04dbe7f0"></script>
|
|
7
|
-
<link rel="stylesheet" href="../../themes/default/dialog.css?
|
|
8
|
-
<style type="text/css">
|
|
9
|
-
.warp {
|
|
10
|
-
width: 320px;
|
|
11
|
-
height: 200px;
|
|
12
|
-
margin-left: 5px;
|
|
13
|
-
padding: 20px 0 0 15px;
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
#url {
|
|
18
|
-
width: 290px;
|
|
19
|
-
margin-bottom: 2px;
|
|
20
|
-
margin-left: -6px;
|
|
21
|
-
margin-left: -2px \9;
|
|
22
|
-
*margin-left: 0;
|
|
23
|
-
_margin-left: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.format span {
|
|
27
|
-
display: inline-block;
|
|
28
|
-
width: 58px;
|
|
29
|
-
text-align: left;
|
|
30
|
-
zoom: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
table td {
|
|
34
|
-
padding: 5px 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
#align {
|
|
38
|
-
width: 65px;
|
|
39
|
-
height: 23px;
|
|
40
|
-
line-height: 22px;
|
|
41
|
-
}
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<div class="warp">
|
|
46
|
-
<table width="300" cellpadding="0" cellspacing="0">
|
|
47
|
-
<tr>
|
|
48
|
-
<td colspan="2" class="format">
|
|
49
|
-
<span><var id="lang_input_address"></var></span>
|
|
50
|
-
<input style="width:200px" id="url" type="text" value=""/>
|
|
51
|
-
</td>
|
|
52
|
-
</tr>
|
|
53
|
-
<tr>
|
|
54
|
-
<td colspan="2" class="format"><span><var id="lang_input_width"></var></span><input style="width:200px"
|
|
55
|
-
type="text" id="width"/>
|
|
56
|
-
px
|
|
57
|
-
</td>
|
|
58
|
-
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td colspan="2" class="format"><span><var id="lang_input_height"></var></span><input style="width:200px"
|
|
62
|
-
type="text"
|
|
63
|
-
id="height"/> px
|
|
64
|
-
</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td><span><var id="lang_input_isScroll"></var></span><input type="checkbox" id="scroll"/></td>
|
|
68
|
-
<td><span><var id="lang_input_frameborder"></var></span><input type="checkbox" id="frameborder"/></td>
|
|
69
|
-
</tr>
|
|
70
|
-
|
|
71
|
-
<tr>
|
|
72
|
-
<td colspan="2"><span><var id="lang_input_alignMode"></var></span>
|
|
73
|
-
<select id="align">
|
|
74
|
-
<option value=""></option>
|
|
75
|
-
<option value="left"></option>
|
|
76
|
-
<option value="right"></option>
|
|
77
|
-
</select>
|
|
78
|
-
</td>
|
|
79
|
-
</tr>
|
|
80
|
-
</table>
|
|
81
|
-
</div>
|
|
82
|
-
<script type="text/javascript">
|
|
83
|
-
var iframe = editor._iframe;
|
|
84
|
-
if (iframe) {
|
|
85
|
-
$G("url").value = iframe.getAttribute("src") || "";
|
|
86
|
-
$G("width").value = iframe.getAttribute("width") || iframe.style.width.replace("px", "") || "";
|
|
87
|
-
$G("height").value = iframe.getAttribute("height") || iframe.style.height.replace("px", "") || "";
|
|
88
|
-
$G("scroll").checked = (iframe.getAttribute("scrolling") == "yes") ? true : false;
|
|
89
|
-
$G("frameborder").checked = (iframe.getAttribute("frameborder") == "1") ? true : false;
|
|
90
|
-
$G("align").value = iframe.align ? iframe.align : "";
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function queding() {
|
|
94
|
-
var url = $G("url").value.replace(/^\s*|\s*$/ig, ""),
|
|
95
|
-
width = $G("width").value,
|
|
96
|
-
height = $G("height").value,
|
|
97
|
-
scroll = $G("scroll"),
|
|
98
|
-
frameborder = $G("frameborder"),
|
|
99
|
-
float = $G("align").value,
|
|
100
|
-
newIframe = editor.document.createElement("iframe"),
|
|
101
|
-
div;
|
|
102
|
-
if (!url) {
|
|
103
|
-
alert(lang.enterAddress);
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
newIframe.setAttribute("src", /http:\/\/|https:\/\//ig.test(url) ? url : "http://" + url);
|
|
107
|
-
/^[1-9]+[.]?\d*$/g.test(width) ? newIframe.setAttribute("width", width) : "";
|
|
108
|
-
/^[1-9]+[.]?\d*$/g.test(height) ? newIframe.setAttribute("height", height) : "";
|
|
109
|
-
scroll.checked ? newIframe.setAttribute("scrolling", "yes") : newIframe.setAttribute("scrolling", "no");
|
|
110
|
-
frameborder.checked ? newIframe.setAttribute("frameborder", "1", 0) : newIframe.setAttribute("frameborder", "0", 0);
|
|
111
|
-
float ? newIframe.setAttribute("align", float) : newIframe.setAttribute("align", "");
|
|
112
|
-
if (iframe) {
|
|
113
|
-
iframe.parentNode.insertBefore(newIframe, iframe);
|
|
114
|
-
domUtils.remove(iframe);
|
|
115
|
-
} else {
|
|
116
|
-
div = editor.document.createElement("div");
|
|
117
|
-
div.appendChild(newIframe);
|
|
118
|
-
editor.execCommand("inserthtml", div.innerHTML);
|
|
119
|
-
}
|
|
120
|
-
editor._iframe = null;
|
|
121
|
-
dialog.close();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
dialog.onok = queding;
|
|
125
|
-
$G("url").onkeydown = function (evt) {
|
|
126
|
-
evt = evt || event;
|
|
127
|
-
if (evt.keyCode == 13) {
|
|
128
|
-
queding();
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
$focus($G("url"));
|
|
132
|
-
|
|
133
|
-
</script>
|
|
134
|
-
</body>
|
|
135
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
+
<title></title>
|
|
6
|
+
<script type="text/javascript" src="../internal.js?04dbe7f0"></script>
|
|
7
|
+
<link rel="stylesheet" href="../../themes/default/dialog.css?c473027a">
|
|
8
|
+
<style type="text/css">
|
|
9
|
+
.warp {
|
|
10
|
+
width: 320px;
|
|
11
|
+
height: 200px;
|
|
12
|
+
margin-left: 5px;
|
|
13
|
+
padding: 20px 0 0 15px;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#url {
|
|
18
|
+
width: 290px;
|
|
19
|
+
margin-bottom: 2px;
|
|
20
|
+
margin-left: -6px;
|
|
21
|
+
margin-left: -2px \9;
|
|
22
|
+
*margin-left: 0;
|
|
23
|
+
_margin-left: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.format span {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
width: 58px;
|
|
29
|
+
text-align: left;
|
|
30
|
+
zoom: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
table td {
|
|
34
|
+
padding: 5px 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#align {
|
|
38
|
+
width: 65px;
|
|
39
|
+
height: 23px;
|
|
40
|
+
line-height: 22px;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
</head>
|
|
44
|
+
<body>
|
|
45
|
+
<div class="warp">
|
|
46
|
+
<table width="300" cellpadding="0" cellspacing="0">
|
|
47
|
+
<tr>
|
|
48
|
+
<td colspan="2" class="format">
|
|
49
|
+
<span><var id="lang_input_address"></var></span>
|
|
50
|
+
<input style="width:200px" id="url" type="text" value=""/>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td colspan="2" class="format"><span><var id="lang_input_width"></var></span><input style="width:200px"
|
|
55
|
+
type="text" id="width"/>
|
|
56
|
+
px
|
|
57
|
+
</td>
|
|
58
|
+
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td colspan="2" class="format"><span><var id="lang_input_height"></var></span><input style="width:200px"
|
|
62
|
+
type="text"
|
|
63
|
+
id="height"/> px
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td><span><var id="lang_input_isScroll"></var></span><input type="checkbox" id="scroll"/></td>
|
|
68
|
+
<td><span><var id="lang_input_frameborder"></var></span><input type="checkbox" id="frameborder"/></td>
|
|
69
|
+
</tr>
|
|
70
|
+
|
|
71
|
+
<tr>
|
|
72
|
+
<td colspan="2"><span><var id="lang_input_alignMode"></var></span>
|
|
73
|
+
<select id="align">
|
|
74
|
+
<option value=""></option>
|
|
75
|
+
<option value="left"></option>
|
|
76
|
+
<option value="right"></option>
|
|
77
|
+
</select>
|
|
78
|
+
</td>
|
|
79
|
+
</tr>
|
|
80
|
+
</table>
|
|
81
|
+
</div>
|
|
82
|
+
<script type="text/javascript">
|
|
83
|
+
var iframe = editor._iframe;
|
|
84
|
+
if (iframe) {
|
|
85
|
+
$G("url").value = iframe.getAttribute("src") || "";
|
|
86
|
+
$G("width").value = iframe.getAttribute("width") || iframe.style.width.replace("px", "") || "";
|
|
87
|
+
$G("height").value = iframe.getAttribute("height") || iframe.style.height.replace("px", "") || "";
|
|
88
|
+
$G("scroll").checked = (iframe.getAttribute("scrolling") == "yes") ? true : false;
|
|
89
|
+
$G("frameborder").checked = (iframe.getAttribute("frameborder") == "1") ? true : false;
|
|
90
|
+
$G("align").value = iframe.align ? iframe.align : "";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function queding() {
|
|
94
|
+
var url = $G("url").value.replace(/^\s*|\s*$/ig, ""),
|
|
95
|
+
width = $G("width").value,
|
|
96
|
+
height = $G("height").value,
|
|
97
|
+
scroll = $G("scroll"),
|
|
98
|
+
frameborder = $G("frameborder"),
|
|
99
|
+
float = $G("align").value,
|
|
100
|
+
newIframe = editor.document.createElement("iframe"),
|
|
101
|
+
div;
|
|
102
|
+
if (!url) {
|
|
103
|
+
alert(lang.enterAddress);
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
newIframe.setAttribute("src", /http:\/\/|https:\/\//ig.test(url) ? url : "http://" + url);
|
|
107
|
+
/^[1-9]+[.]?\d*$/g.test(width) ? newIframe.setAttribute("width", width) : "";
|
|
108
|
+
/^[1-9]+[.]?\d*$/g.test(height) ? newIframe.setAttribute("height", height) : "";
|
|
109
|
+
scroll.checked ? newIframe.setAttribute("scrolling", "yes") : newIframe.setAttribute("scrolling", "no");
|
|
110
|
+
frameborder.checked ? newIframe.setAttribute("frameborder", "1", 0) : newIframe.setAttribute("frameborder", "0", 0);
|
|
111
|
+
float ? newIframe.setAttribute("align", float) : newIframe.setAttribute("align", "");
|
|
112
|
+
if (iframe) {
|
|
113
|
+
iframe.parentNode.insertBefore(newIframe, iframe);
|
|
114
|
+
domUtils.remove(iframe);
|
|
115
|
+
} else {
|
|
116
|
+
div = editor.document.createElement("div");
|
|
117
|
+
div.appendChild(newIframe);
|
|
118
|
+
editor.execCommand("inserthtml", div.innerHTML);
|
|
119
|
+
}
|
|
120
|
+
editor._iframe = null;
|
|
121
|
+
dialog.close();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
dialog.onok = queding;
|
|
125
|
+
$G("url").onkeydown = function (evt) {
|
|
126
|
+
evt = evt || event;
|
|
127
|
+
if (evt.keyCode == 13) {
|
|
128
|
+
queding();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
$focus($G("url"));
|
|
132
|
+
|
|
133
|
+
</script>
|
|
134
|
+
</body>
|
|
135
|
+
</html>
|