Version Description
Compatibility with WordPress 3.2 and TinyMCE 3.4.2, removed the options for suport for iframe and HTML 5.0 elements as they are supported by default in WordPress 3.2, removed the media plugin as it is included by default.
Download this release
Release Info
Developer | azaozz |
Plugin | TinyMCE Advanced |
Version | 3.4.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.9.2 to 3.4.2
- mce/advhr/langs/en_dlg.js +2 -0
- mce/advhr/rule.htm +37 -41
- mce/advimage/image.htm +43 -45
- mce/advimage/js/image.js +20 -5
- mce/advimage/langs/en_dlg.js +2 -0
- mce/advlink/js/advlink.js +21 -17
- mce/advlink/langs/en_dlg.js +4 -2
- mce/advlink/link.htm +43 -43
- mce/advlist/editor_plugin.js +1 -1
- mce/contextmenu/editor_plugin.js +1 -1
- mce/layer/editor_plugin.js +1 -1
- mce/media/css/content.css +0 -6
- mce/media/css/media.css +0 -16
- mce/media/editor_plugin.js +0 -1
- mce/media/img/flash.gif +0 -0
- mce/media/img/flv_player.swf +0 -0
- mce/media/img/quicktime.gif +0 -0
- mce/media/img/realmedia.gif +0 -0
- mce/media/img/shockwave.gif +0 -0
- mce/media/img/trans.gif +0 -0
- mce/media/img/windowsmedia.gif +0 -0
- mce/media/js/embed.js +0 -73
- mce/media/js/media.js +0 -630
- mce/media/langs/de_dlg.js +0 -1
- mce/media/langs/en_dlg.js +0 -103
- mce/media/langs/es_dlg.js +0 -1
- mce/media/langs/fr_dlg.js +0 -1
- mce/media/langs/it_dlg.js +0 -1
- mce/media/langs/ja_dlg.js +0 -1
- mce/media/langs/langs.php +0 -9
- mce/media/langs/pt_dlg.js +0 -1
- mce/media/langs/ru_dlg.js +0 -1
- mce/media/langs/zh_dlg.js +0 -1
- mce/media/media.htm +0 -817
- mce/nonbreaking/editor_plugin.js +1 -1
- mce/searchreplace/editor_plugin.js +1 -1
- mce/searchreplace/js/searchreplace.js +14 -10
- mce/searchreplace/searchreplace.htm +26 -30
- mce/style/js/props.js +2 -8
- mce/style/langs/en_dlg.js +8 -1
- mce/style/props.htm +522 -414
- mce/table/cell.htm +20 -25
- mce/table/editor_plugin.js +1 -1
- mce/table/js/cell.js +9 -11
- mce/table/js/row.js +13 -18
- mce/table/js/table.js +8 -12
- mce/table/langs/en_dlg.js +1 -1
- mce/table/merge_cells.htm +18 -23
- mce/table/row.htm +18 -21
- mce/table/table.htm +63 -67
- mce/visualchars/editor_plugin.js +1 -1
- mce/xhtmlxtras/abbr.htm +16 -22
- mce/xhtmlxtras/acronym.htm +16 -22
- mce/xhtmlxtras/attributes.htm +14 -18
- mce/xhtmlxtras/cite.htm +15 -21
- mce/xhtmlxtras/del.htm +19 -26
- mce/xhtmlxtras/editor_plugin.js +1 -1
- mce/xhtmlxtras/ins.htm +21 -28
- mce/xhtmlxtras/js/attributes.js +1 -16
- mce/xhtmlxtras/js/del.js +2 -12
- mce/xhtmlxtras/js/element_common.js +3 -5
- mce/xhtmlxtras/js/ins.js +4 -13
- readme.txt +10 -7
- screenshot-1.jpg +0 -0
- screenshot-1.png +0 -0
- tadv_admin.php +1 -8
- tadv_defaults.php +1 -1
- tiny_mce_popup.js +1 -1
- tinymce-advanced.php +4 -19
- utils/form_utils.js +14 -4
- utils/mctabs.js +95 -10
- utils/validate.js +35 -3
mce/advhr/langs/en_dlg.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
tinyMCE.addI18n('en.advhr_dlg',{
|
|
|
2 |
width:"Width",
|
|
|
3 |
size:"Height",
|
4 |
noshade:"No shadow"
|
5 |
});
|
1 |
tinyMCE.addI18n('en.advhr_dlg',{
|
2 |
+
normal:"Normal",
|
3 |
width:"Width",
|
4 |
+
widthunits:"Units",
|
5 |
size:"Height",
|
6 |
noshade:"No shadow"
|
7 |
});
|
mce/advhr/rule.htm
CHANGED
@@ -2,60 +2,56 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#advhr.advhr_desc}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="js/rule.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
9 |
-
<link href="css/advhr.css?ver=
|
10 |
</head>
|
11 |
-
<body>
|
12 |
<form onsubmit="AdvHRDialog.update();return false;" action="#">
|
13 |
<div class="tabs">
|
14 |
<ul>
|
15 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
|
16 |
</ul>
|
17 |
</div>
|
18 |
|
19 |
<div class="panel_wrapper">
|
20 |
<div id="general_panel" class="panel current">
|
21 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
48 |
</div>
|
49 |
</div>
|
50 |
|
51 |
<div class="mceActionPanel">
|
52 |
-
<
|
53 |
-
|
54 |
-
</div>
|
55 |
-
|
56 |
-
<div style="float: right">
|
57 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
58 |
-
</div>
|
59 |
</div>
|
60 |
</form>
|
61 |
</body>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#advhr.advhr_desc}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="js/rule.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
9 |
+
<link href="css/advhr.css?ver=342" rel="stylesheet" type="text/css" />
|
10 |
</head>
|
11 |
+
<body role="application">
|
12 |
<form onsubmit="AdvHRDialog.update();return false;" action="#">
|
13 |
<div class="tabs">
|
14 |
<ul>
|
15 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
|
16 |
</ul>
|
17 |
</div>
|
18 |
|
19 |
<div class="panel_wrapper">
|
20 |
<div id="general_panel" class="panel current">
|
21 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
22 |
+
<tr role="group" aria-labelledby="width_label">
|
23 |
+
<td><label id="width_label" for="width">{#advhr_dlg.width}</label></td>
|
24 |
+
<td class="nowrap">
|
25 |
+
<input id="width" name="width" type="text" value="" class="mceFocus" />
|
26 |
+
<span style="display:none;" id="width_unit_label">{#advhr_dlg.widthunits}</span>
|
27 |
+
<select name="width2" id="width2" aria-labelledby="width_unit_label">
|
28 |
+
<option value="">px</option>
|
29 |
+
<option value="%">%</option>
|
30 |
+
</select>
|
31 |
+
</td>
|
32 |
+
</tr>
|
33 |
+
<tr>
|
34 |
+
<td><label for="size">{#advhr_dlg.size}</label></td>
|
35 |
+
<td><select id="size" name="size">
|
36 |
+
<option value="">{#advhr_dlg.normal}</option>
|
37 |
+
<option value="1">1</option>
|
38 |
+
<option value="2">2</option>
|
39 |
+
<option value="3">3</option>
|
40 |
+
<option value="4">4</option>
|
41 |
+
<option value="5">5</option>
|
42 |
+
</select></td>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td><label for="noshade">{#advhr_dlg.noshade}</label></td>
|
46 |
+
<td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
|
47 |
+
</tr>
|
48 |
+
</table>
|
49 |
</div>
|
50 |
</div>
|
51 |
|
52 |
<div class="mceActionPanel">
|
53 |
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
54 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
55 |
</div>
|
56 |
</form>
|
57 |
</body>
|
mce/advimage/image.htm
CHANGED
@@ -2,21 +2,22 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#advimage_dlg.dialog_title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/validate.js?ver=
|
9 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
10 |
-
<script type="text/javascript" src="js/image.js?ver=
|
11 |
-
<link href="css/advimage.css?ver=
|
12 |
</head>
|
13 |
-
<body id="advimage" style="display: none">
|
14 |
-
|
|
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
|
18 |
-
<li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
|
19 |
-
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
|
20 |
</ul>
|
21 |
</div>
|
22 |
|
@@ -25,15 +26,15 @@
|
|
25 |
<fieldset>
|
26 |
<legend>{#advimage_dlg.general}</legend>
|
27 |
|
28 |
-
<table class="properties">
|
29 |
<tr>
|
30 |
<td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
|
31 |
-
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
|
32 |
<tr>
|
33 |
-
|
34 |
-
|
35 |
</tr>
|
36 |
-
|
37 |
</tr>
|
38 |
<tr>
|
39 |
<td><label for="src_list">{#advimage_dlg.image_list}</label></td>
|
@@ -60,7 +61,7 @@
|
|
60 |
<fieldset>
|
61 |
<legend>{#advimage_dlg.tab_appearance}</legend>
|
62 |
|
63 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
64 |
<tr>
|
65 |
<td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
|
66 |
<td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
|
@@ -86,17 +87,19 @@
|
|
86 |
</td>
|
87 |
</tr>
|
88 |
|
89 |
-
<tr>
|
90 |
<td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
|
91 |
<td class="nowrap">
|
92 |
-
<
|
93 |
-
<input name="
|
|
|
|
|
94 |
</td>
|
95 |
</tr>
|
96 |
|
97 |
<tr>
|
98 |
<td> </td>
|
99 |
-
<td><table border="0" cellpadding="0" cellspacing="0">
|
100 |
<tr>
|
101 |
<td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
|
102 |
<td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
|
@@ -142,18 +145,18 @@
|
|
142 |
<fieldset>
|
143 |
<legend>{#advimage_dlg.swap_image}</legend>
|
144 |
|
145 |
-
<input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" />
|
146 |
<label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
|
147 |
|
148 |
-
<table border="0" cellpadding="4" cellspacing="0" width="100%">
|
149 |
<tr>
|
150 |
<td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
|
151 |
-
<td><table border="0" cellspacing="0" cellpadding="0">
|
152 |
<tr>
|
153 |
-
|
154 |
-
|
155 |
</tr>
|
156 |
-
|
157 |
</tr>
|
158 |
<tr>
|
159 |
<td><label for="over_list">{#advimage_dlg.image_list}</label></td>
|
@@ -161,12 +164,12 @@
|
|
161 |
</tr>
|
162 |
<tr>
|
163 |
<td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
|
164 |
-
<td class="column2"><table border="0" cellspacing="0" cellpadding="0">
|
165 |
<tr>
|
166 |
-
|
167 |
-
|
168 |
</tr>
|
169 |
-
|
170 |
</tr>
|
171 |
<tr>
|
172 |
<td><label for="out_list">{#advimage_dlg.image_list}</label></td>
|
@@ -178,7 +181,7 @@
|
|
178 |
<fieldset>
|
179 |
<legend>{#advimage_dlg.misc}</legend>
|
180 |
|
181 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
182 |
<tr>
|
183 |
<td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
|
184 |
<td><input id="id" name="id" type="text" value="" /></td>
|
@@ -211,12 +214,12 @@
|
|
211 |
|
212 |
<tr>
|
213 |
<td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
|
214 |
-
<td><table border="0" cellspacing="0" cellpadding="0">
|
215 |
<tr>
|
216 |
-
|
217 |
-
|
218 |
</tr>
|
219 |
-
|
220 |
</tr>
|
221 |
</table>
|
222 |
</fieldset>
|
@@ -224,14 +227,9 @@
|
|
224 |
</div>
|
225 |
|
226 |
<div class="mceActionPanel">
|
227 |
-
<
|
228 |
-
|
229 |
-
</div>
|
230 |
-
|
231 |
-
<div style="float: right">
|
232 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
233 |
-
</div>
|
234 |
</div>
|
235 |
-
|
236 |
</body>
|
237 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#advimage_dlg.dialog_title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/validate.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/image.js?ver=342"></script>
|
11 |
+
<link href="css/advimage.css?ver=342" rel="stylesheet" type="text/css" />
|
12 |
</head>
|
13 |
+
<body id="advimage" style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span id="app_title" style="display:none">{#advimage_dlg.dialog_title}</span>
|
15 |
+
<form onsubmit="ImageDialog.insert();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
|
19 |
+
<li id="appearance_tab" aria-controls="appearance_panel"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
|
20 |
+
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
|
21 |
</ul>
|
22 |
</div>
|
23 |
|
26 |
<fieldset>
|
27 |
<legend>{#advimage_dlg.general}</legend>
|
28 |
|
29 |
+
<table role="presentation" class="properties">
|
30 |
<tr>
|
31 |
<td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
|
32 |
+
<td colspan="2"><table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
33 |
<tr>
|
34 |
+
<td><input name="src" type="text" id="src" value="" class="mceFocus" onchange="ImageDialog.showPreviewImage(this.value);" aria-required="true" /></td>
|
35 |
+
<td id="srcbrowsercontainer"> </td>
|
36 |
</tr>
|
37 |
+
</table></td>
|
38 |
</tr>
|
39 |
<tr>
|
40 |
<td><label for="src_list">{#advimage_dlg.image_list}</label></td>
|
61 |
<fieldset>
|
62 |
<legend>{#advimage_dlg.tab_appearance}</legend>
|
63 |
|
64 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
65 |
<tr>
|
66 |
<td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
|
67 |
<td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
|
87 |
</td>
|
88 |
</tr>
|
89 |
|
90 |
+
<tr role="group" aria-labelledby="widthlabel">
|
91 |
<td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
|
92 |
<td class="nowrap">
|
93 |
+
<span style="display:none" id="width_voiceLabel">{#advimage_dlg.width}</span>
|
94 |
+
<input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" aria-labelledby="width_voiceLabel" /> x
|
95 |
+
<span style="display:none" id="height_voiceLabel">{#advimage_dlg.height}</span>
|
96 |
+
<input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" aria-labelledby="height_voiceLabel" /> px
|
97 |
</td>
|
98 |
</tr>
|
99 |
|
100 |
<tr>
|
101 |
<td> </td>
|
102 |
+
<td><table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
103 |
<tr>
|
104 |
<td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
|
105 |
<td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
|
145 |
<fieldset>
|
146 |
<legend>{#advimage_dlg.swap_image}</legend>
|
147 |
|
148 |
+
<input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" aria-controls="onmouseoversrc onmouseoutsrc" />
|
149 |
<label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
|
150 |
|
151 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%">
|
152 |
<tr>
|
153 |
<td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
|
154 |
+
<td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
155 |
<tr>
|
156 |
+
<td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
|
157 |
+
<td id="onmouseoversrccontainer"> </td>
|
158 |
</tr>
|
159 |
+
</table></td>
|
160 |
</tr>
|
161 |
<tr>
|
162 |
<td><label for="over_list">{#advimage_dlg.image_list}</label></td>
|
164 |
</tr>
|
165 |
<tr>
|
166 |
<td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
|
167 |
+
<td class="column2"><table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
168 |
<tr>
|
169 |
+
<td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
|
170 |
+
<td id="onmouseoutsrccontainer"> </td>
|
171 |
</tr>
|
172 |
+
</table></td>
|
173 |
</tr>
|
174 |
<tr>
|
175 |
<td><label for="out_list">{#advimage_dlg.image_list}</label></td>
|
181 |
<fieldset>
|
182 |
<legend>{#advimage_dlg.misc}</legend>
|
183 |
|
184 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
185 |
<tr>
|
186 |
<td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
|
187 |
<td><input id="id" name="id" type="text" value="" /></td>
|
214 |
|
215 |
<tr>
|
216 |
<td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
|
217 |
+
<td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
218 |
<tr>
|
219 |
+
<td><input id="longdesc" name="longdesc" type="text" value="" /></td>
|
220 |
+
<td id="longdesccontainer"> </td>
|
221 |
</tr>
|
222 |
+
</table></td>
|
223 |
</tr>
|
224 |
</table>
|
225 |
</fieldset>
|
227 |
</div>
|
228 |
|
229 |
<div class="mceActionPanel">
|
230 |
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
231 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
232 |
</div>
|
233 |
+
</form>
|
234 |
</body>
|
235 |
</html>
|
mce/advimage/js/image.js
CHANGED
@@ -142,7 +142,7 @@ var ImageDialog = {
|
|
142 |
}
|
143 |
|
144 |
tinymce.extend(args, {
|
145 |
-
src : nl.src.value,
|
146 |
width : nl.width.value,
|
147 |
height : nl.height.value,
|
148 |
alt : nl.alt.value,
|
@@ -177,6 +177,8 @@ var ImageDialog = {
|
|
177 |
ed.undoManager.add();
|
178 |
}
|
179 |
|
|
|
|
|
180 |
tinyMCEPopup.close();
|
181 |
},
|
182 |
|
@@ -359,7 +361,7 @@ var ImageDialog = {
|
|
359 |
},
|
360 |
|
361 |
updateStyle : function(ty) {
|
362 |
-
var dom = tinyMCEPopup.dom,
|
363 |
|
364 |
if (tinyMCEPopup.editor.settings.inline_styles) {
|
365 |
// Handle align
|
@@ -378,14 +380,27 @@ var ImageDialog = {
|
|
378 |
|
379 |
// Handle border
|
380 |
if (ty == 'border') {
|
|
|
|
|
|
|
|
|
381 |
dom.setStyle(img, 'border', '');
|
382 |
|
383 |
v = f.border.value;
|
384 |
if (v || v == '0') {
|
385 |
if (v == '0')
|
386 |
-
img.style.border = '0';
|
387 |
-
else
|
388 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
}
|
390 |
}
|
391 |
|
142 |
}
|
143 |
|
144 |
tinymce.extend(args, {
|
145 |
+
src : nl.src.value.replace(/ /g, '%20'),
|
146 |
width : nl.width.value,
|
147 |
height : nl.height.value,
|
148 |
alt : nl.alt.value,
|
177 |
ed.undoManager.add();
|
178 |
}
|
179 |
|
180 |
+
tinyMCEPopup.editor.execCommand('mceRepaint');
|
181 |
+
tinyMCEPopup.editor.focus();
|
182 |
tinyMCEPopup.close();
|
183 |
},
|
184 |
|
361 |
},
|
362 |
|
363 |
updateStyle : function(ty) {
|
364 |
+
var dom = tinyMCEPopup.dom, b, bStyle, bColor, v, isIE = tinymce.isIE, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
|
365 |
|
366 |
if (tinyMCEPopup.editor.settings.inline_styles) {
|
367 |
// Handle align
|
380 |
|
381 |
// Handle border
|
382 |
if (ty == 'border') {
|
383 |
+
b = img.style.border ? img.style.border.split(' ') : [];
|
384 |
+
bStyle = dom.getStyle(img, 'border-style');
|
385 |
+
bColor = dom.getStyle(img, 'border-color');
|
386 |
+
|
387 |
dom.setStyle(img, 'border', '');
|
388 |
|
389 |
v = f.border.value;
|
390 |
if (v || v == '0') {
|
391 |
if (v == '0')
|
392 |
+
img.style.border = isIE ? '0' : '0 none none';
|
393 |
+
else {
|
394 |
+
if (b.length == 3 && b[isIE ? 2 : 1])
|
395 |
+
bStyle = b[isIE ? 2 : 1];
|
396 |
+
else if (!bStyle || bStyle == 'none')
|
397 |
+
bStyle = 'solid';
|
398 |
+
if (b.length == 3 && b[isIE ? 0 : 2])
|
399 |
+
bColor = b[isIE ? 0 : 2];
|
400 |
+
else if (!bColor || bColor == 'none')
|
401 |
+
bColor = 'black';
|
402 |
+
img.style.border = v + 'px ' + bStyle + ' ' + bColor;
|
403 |
+
}
|
404 |
}
|
405 |
}
|
406 |
|
mce/advimage/langs/en_dlg.js
CHANGED
@@ -28,6 +28,8 @@ alt:"Image description",
|
|
28 |
list:"Image list",
|
29 |
border:"Border",
|
30 |
dimensions:"Dimensions",
|
|
|
|
|
31 |
vspace:"Vertical space",
|
32 |
hspace:"Horizontal space",
|
33 |
align:"Alignment",
|
28 |
list:"Image list",
|
29 |
border:"Border",
|
30 |
dimensions:"Dimensions",
|
31 |
+
width:"Width",
|
32 |
+
height:"Height",
|
33 |
vspace:"Vertical space",
|
34 |
hspace:"Horizontal space",
|
35 |
align:"Alignment",
|
mce/advlink/js/advlink.js
CHANGED
@@ -30,8 +30,6 @@ function init() {
|
|
30 |
|
31 |
document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
|
32 |
document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
|
33 |
-
document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href');
|
34 |
-
document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href');
|
35 |
document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
|
36 |
|
37 |
// Link list
|
@@ -41,6 +39,13 @@ function init() {
|
|
41 |
else
|
42 |
document.getElementById("linklisthrefcontainer").innerHTML = html;
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
// Resize some elements
|
45 |
if (isVisible('hrefbrowser'))
|
46 |
document.getElementById('href').style.width = '260px';
|
@@ -360,20 +365,22 @@ function setAttrib(elm, attrib, value) {
|
|
360 |
}
|
361 |
|
362 |
function getAnchorListHTML(id, target) {
|
363 |
-
var
|
364 |
-
var nodes = inst.dom.select('a.mceItemAnchor,img.mceItemAnchor'), name, i;
|
365 |
-
var html = "";
|
366 |
-
|
367 |
-
html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" o2nfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
|
368 |
-
html += 'this.options[this.selectedIndex].value;">';
|
369 |
-
html += '<option value="">---</option>';
|
370 |
|
371 |
-
for (i=0
|
372 |
-
if ((name =
|
373 |
html += '<option value="#' + name + '">' + name + '</option>';
|
374 |
}
|
375 |
|
376 |
-
html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
|
378 |
return html;
|
379 |
}
|
@@ -389,7 +396,6 @@ function insertAction() {
|
|
389 |
|
390 |
// Remove element if there is no href
|
391 |
if (!document.forms[0].href.value) {
|
392 |
-
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
393 |
i = inst.selection.getBookmark();
|
394 |
inst.dom.remove(elm, 1);
|
395 |
inst.selection.moveToBookmark(i);
|
@@ -398,12 +404,10 @@ function insertAction() {
|
|
398 |
return;
|
399 |
}
|
400 |
|
401 |
-
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
402 |
-
|
403 |
// Create new anchor elements
|
404 |
if (elm == null) {
|
405 |
inst.getDoc().execCommand("unlink", false, null);
|
406 |
-
tinyMCEPopup.execCommand("
|
407 |
|
408 |
elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
|
409 |
for (i=0; i<elementArray.length; i++)
|
@@ -425,7 +429,7 @@ function insertAction() {
|
|
425 |
|
426 |
function setAllAttribs(elm) {
|
427 |
var formObj = document.forms[0];
|
428 |
-
var href = formObj.href.value;
|
429 |
var target = getSelectValue(formObj, 'targetlist');
|
430 |
|
431 |
setAttrib(elm, 'href', href);
|
30 |
|
31 |
document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
|
32 |
document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
|
|
|
|
|
33 |
document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
|
34 |
|
35 |
// Link list
|
39 |
else
|
40 |
document.getElementById("linklisthrefcontainer").innerHTML = html;
|
41 |
|
42 |
+
// Anchor list
|
43 |
+
html = getAnchorListHTML('anchorlist','href');
|
44 |
+
if (html == "")
|
45 |
+
document.getElementById("anchorlistrow").style.display = 'none';
|
46 |
+
else
|
47 |
+
document.getElementById("anchorlistcontainer").innerHTML = html;
|
48 |
+
|
49 |
// Resize some elements
|
50 |
if (isVisible('hrefbrowser'))
|
51 |
document.getElementById('href').style.width = '260px';
|
365 |
}
|
366 |
|
367 |
function getAnchorListHTML(id, target) {
|
368 |
+
var ed = tinyMCEPopup.editor, nodes = ed.dom.select('a'), name, i, len, html = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
|
370 |
+
for (i=0, len=nodes.length; i<len; i++) {
|
371 |
+
if ((name = ed.dom.getAttrib(nodes[i], "name")) != "")
|
372 |
html += '<option value="#' + name + '">' + name + '</option>';
|
373 |
}
|
374 |
|
375 |
+
if (html == "")
|
376 |
+
return "";
|
377 |
+
|
378 |
+
html = '<select id="' + id + '" name="' + id + '" class="mceAnchorList"'
|
379 |
+
+ ' onchange="this.form.' + target + '.value=this.options[this.selectedIndex].value"'
|
380 |
+
+ '>'
|
381 |
+
+ '<option value="">---</option>'
|
382 |
+
+ html
|
383 |
+
+ '</select>';
|
384 |
|
385 |
return html;
|
386 |
}
|
396 |
|
397 |
// Remove element if there is no href
|
398 |
if (!document.forms[0].href.value) {
|
|
|
399 |
i = inst.selection.getBookmark();
|
400 |
inst.dom.remove(elm, 1);
|
401 |
inst.selection.moveToBookmark(i);
|
404 |
return;
|
405 |
}
|
406 |
|
|
|
|
|
407 |
// Create new anchor elements
|
408 |
if (elm == null) {
|
409 |
inst.getDoc().execCommand("unlink", false, null);
|
410 |
+
tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
|
411 |
|
412 |
elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
|
413 |
for (i=0; i<elementArray.length; i++)
|
429 |
|
430 |
function setAllAttribs(elm) {
|
431 |
var formObj = document.forms[0];
|
432 |
+
var href = formObj.href.value.replace(/ /g, '%20');
|
433 |
var target = getSelectValue(formObj, 'targetlist');
|
434 |
|
435 |
setAttrib(elm, 'href', href);
|
mce/advlink/langs/en_dlg.js
CHANGED
@@ -3,8 +3,8 @@ title:"Insert/edit link",
|
|
3 |
url:"Link URL",
|
4 |
target:"Target",
|
5 |
titlefield:"Title",
|
6 |
-
is_email:"The URL you entered seems to be an email address
|
7 |
-
is_external:"The URL you entered seems to external link
|
8 |
list:"Link list",
|
9 |
general_tab:"General",
|
10 |
popup_tab:"Popup",
|
@@ -32,6 +32,8 @@ popup_location:"Show location bar",
|
|
32 |
popup_resizable:"Make window resizable",
|
33 |
popup_dependent:"Dependent (Mozilla/Firefox only)",
|
34 |
popup_size:"Size",
|
|
|
|
|
35 |
popup_position:"Position (X/Y)",
|
36 |
id:"Id",
|
37 |
style:"Style",
|
3 |
url:"Link URL",
|
4 |
target:"Target",
|
5 |
titlefield:"Title",
|
6 |
+
is_email:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",
|
7 |
+
is_external:"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",
|
8 |
list:"Link list",
|
9 |
general_tab:"General",
|
10 |
popup_tab:"Popup",
|
32 |
popup_resizable:"Make window resizable",
|
33 |
popup_dependent:"Dependent (Mozilla/Firefox only)",
|
34 |
popup_size:"Size",
|
35 |
+
width:"Width",
|
36 |
+
height:"Height",
|
37 |
popup_position:"Position (X/Y)",
|
38 |
id:"Id",
|
39 |
style:"Style",
|
mce/advlink/link.htm
CHANGED
@@ -2,44 +2,45 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#advlink_dlg.title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/validate.js?ver=
|
9 |
-
<script type="text/javascript" src="js/advlink.js?ver=
|
10 |
-
<link href="css/advlink.css?ver=
|
11 |
</head>
|
12 |
-
<body id="advlink" style="display: none">
|
13 |
-
|
14 |
-
|
|
|
15 |
<ul>
|
16 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
|
17 |
-
<li id="popup_tab"><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
|
18 |
-
<li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
|
19 |
-
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
|
20 |
</ul>
|
21 |
</div>
|
22 |
|
23 |
-
<div class="panel_wrapper">
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#advlink_dlg.general_props}</legend>
|
27 |
|
28 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
29 |
<tr>
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
</tr>
|
38 |
<tr id="linklisthrefrow">
|
39 |
<td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
|
40 |
<td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
|
41 |
</tr>
|
42 |
-
<tr>
|
43 |
<td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
|
44 |
<td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
|
45 |
</tr>
|
@@ -70,7 +71,7 @@
|
|
70 |
<input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
|
71 |
<label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
|
72 |
|
73 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
74 |
<tr>
|
75 |
<td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td>
|
76 |
<td>
|
@@ -86,18 +87,22 @@
|
|
86 |
<td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label> </td>
|
87 |
<td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
|
88 |
</tr>
|
89 |
-
<tr>
|
90 |
-
<td class="nowrap"><label>{#advlink_dlg.popup_size}</label> </td>
|
91 |
<td class="nowrap">
|
92 |
-
<
|
93 |
-
<input type="text" id="
|
|
|
|
|
94 |
</td>
|
95 |
</tr>
|
96 |
-
<tr>
|
97 |
-
<td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label> </td>
|
98 |
<td class="nowrap">
|
99 |
-
<
|
100 |
-
<input type="text" id="
|
|
|
|
|
101 |
</td>
|
102 |
</tr>
|
103 |
</table>
|
@@ -105,7 +110,7 @@
|
|
105 |
<fieldset>
|
106 |
<legend>{#advlink_dlg.popup_opts}</legend>
|
107 |
|
108 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
109 |
<tr>
|
110 |
<td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
|
111 |
<td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
|
@@ -139,7 +144,7 @@
|
|
139 |
<fieldset>
|
140 |
<legend>{#advlink_dlg.advanced_props}</legend>
|
141 |
|
142 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
143 |
<tr>
|
144 |
<td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
|
145 |
<td><input id="id" name="id" type="text" value="" /></td>
|
@@ -259,7 +264,7 @@
|
|
259 |
<fieldset>
|
260 |
<legend>{#advlink_dlg.event_props}</legend>
|
261 |
|
262 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
263 |
<tr>
|
264 |
<td class="column1"><label for="onfocus">onfocus</label></td>
|
265 |
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
|
@@ -325,14 +330,9 @@
|
|
325 |
</div>
|
326 |
|
327 |
<div class="mceActionPanel">
|
328 |
-
<
|
329 |
-
|
330 |
-
</div>
|
331 |
-
|
332 |
-
<div style="float: right">
|
333 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
334 |
-
</div>
|
335 |
</div>
|
336 |
-
|
337 |
</body>
|
338 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#advlink_dlg.title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/validate.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/advlink.js?ver=342"></script>
|
10 |
+
<link href="css/advlink.css?ver=342" rel="stylesheet" type="text/css" />
|
11 |
</head>
|
12 |
+
<body id="advlink" style="display: none" role="application" onload="javascript:mcTabs.displayTab('general_tab','general_panel', true);" aria-labelledby="app_label">
|
13 |
+
<span class="mceVoiceLabel" id="app_label" style="display:none;">{#advlink_dlg.title}</span>
|
14 |
+
<form onsubmit="insertAction();return false;" action="#">
|
15 |
+
<div class="tabs" role="presentation">
|
16 |
<ul>
|
17 |
+
<li id="general_tab" class="current" aria-controls="general_panel" ><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
|
18 |
+
<li id="popup_tab" aria-controls="popup_panel" ><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
|
19 |
+
<li id="events_tab" aria-controls="events_panel"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
|
20 |
+
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
|
21 |
</ul>
|
22 |
</div>
|
23 |
|
24 |
+
<div class="panel_wrapper" role="presentation">
|
25 |
<div id="general_panel" class="panel current">
|
26 |
<fieldset>
|
27 |
<legend>{#advlink_dlg.general_props}</legend>
|
28 |
|
29 |
+
<table border="0" cellpadding="4" cellspacing="0" role="presentation">
|
30 |
<tr>
|
31 |
+
<td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
|
32 |
+
<td><table border="0" cellspacing="0" cellpadding="0">
|
33 |
+
<tr>
|
34 |
+
<td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" aria-required="true" /></td>
|
35 |
+
<td id="hrefbrowsercontainer"> </td>
|
36 |
+
</tr>
|
37 |
+
</table></td>
|
38 |
</tr>
|
39 |
<tr id="linklisthrefrow">
|
40 |
<td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
|
41 |
<td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
|
42 |
</tr>
|
43 |
+
<tr id="anchorlistrow">
|
44 |
<td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
|
45 |
<td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
|
46 |
</tr>
|
71 |
<input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
|
72 |
<label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
|
73 |
|
74 |
+
<table border="0" cellpadding="0" cellspacing="4" role="presentation" >
|
75 |
<tr>
|
76 |
<td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td>
|
77 |
<td>
|
87 |
<td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label> </td>
|
88 |
<td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
|
89 |
</tr>
|
90 |
+
<tr role="group" aria-labelledby="popup_size_label">
|
91 |
+
<td class="nowrap"><label id="popup_size_label">{#advlink_dlg.popup_size}</label> </td>
|
92 |
<td class="nowrap">
|
93 |
+
<span style="display:none" id="width_voiceLabel">{#advlink_dlg.width}</span>
|
94 |
+
<input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" aria-labelledby="width_voiceLabel" /> x
|
95 |
+
<span style="display:none" id="height_voiceLabel">{#advlink_dlg.height}</span>
|
96 |
+
<input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" aria-labelledby="height_voiceLabel" /> px
|
97 |
</td>
|
98 |
</tr>
|
99 |
+
<tr role="group" aria-labelledby="popup_position_label center_hint">
|
100 |
+
<td class="nowrap" id="labelleft"><label id="popup_position_label">{#advlink_dlg.popup_position}</label> </td>
|
101 |
<td class="nowrap">
|
102 |
+
<span style="display:none" id="x_voiceLabel">X</span>
|
103 |
+
<input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" aria-labelledby="x_voiceLabel" /> /
|
104 |
+
<span style="display:none" id="y_voiceLabel">Y</span>
|
105 |
+
<input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" aria-labelledby="y_voiceLabel" /> <span id="center_hint">(c /c = center)</span>
|
106 |
</td>
|
107 |
</tr>
|
108 |
</table>
|
110 |
<fieldset>
|
111 |
<legend>{#advlink_dlg.popup_opts}</legend>
|
112 |
|
113 |
+
<table border="0" cellpadding="0" cellspacing="4" role="presentation" >
|
114 |
<tr>
|
115 |
<td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
|
116 |
<td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
|
144 |
<fieldset>
|
145 |
<legend>{#advlink_dlg.advanced_props}</legend>
|
146 |
|
147 |
+
<table border="0" cellpadding="0" cellspacing="4" role="presentation" >
|
148 |
<tr>
|
149 |
<td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
|
150 |
<td><input id="id" name="id" type="text" value="" /></td>
|
264 |
<fieldset>
|
265 |
<legend>{#advlink_dlg.event_props}</legend>
|
266 |
|
267 |
+
<table border="0" cellpadding="0" cellspacing="4" role="presentation" >
|
268 |
<tr>
|
269 |
<td class="column1"><label for="onfocus">onfocus</label></td>
|
270 |
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
|
330 |
</div>
|
331 |
|
332 |
<div class="mceActionPanel">
|
333 |
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
334 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
335 |
</div>
|
336 |
+
</form>
|
337 |
</body>
|
338 |
</html>
|
mce/advlist/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("
|
1 |
+
(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square");if(tinymce.isIE&&/MSIE [2-7]/.test(navigator.userAgent)){d.isIE7=true}},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("data-mce-style")}}i.focus()}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle",titleItem:true}).setDisabled(1);a(f[d],function(k){if(f.isIE7&&k.styles.listStyleType=="lower-greek"){return}k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})();
|
mce/contextmenu/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(
|
1 |
+
(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(e){var h=this,f,d,i;h.editor=e;d=e.settings.contextmenu_never_use_native;h.onContextMenu=new tinymce.util.Dispatcher(this);f=e.onContextMenu.add(function(j,k){if((i!==0?i:k.ctrlKey)&&!d){return}a.cancel(k);if(k.target.nodeName=="IMG"){j.selection.select(k.target)}h._getMenu(j).showMenu(k.clientX||k.pageX,k.clientY||k.pageX);a.add(j.getDoc(),"click",function(l){g(j,l)});j.nodeChanged()});e.onRemove.add(function(){if(h._menu){h._menu.removeAll()}});function g(j,k){i=0;if(k&&k.button==2){i=k.ctrlKey;return}if(h._menu){h._menu.removeAll();h._menu.destroy();a.remove(j.getDoc(),"click",g)}}e.onMouseDown.add(g);e.onKeyDown.add(g);e.onKeyDown.add(function(j,k){if(k.shiftKey&&!k.ctrlKey&&!k.altKey&&k.keyCode===121){a.cancel(k);f(j,k)}})},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1,keyboard_focus:true});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})();
|
mce/layer/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){tinymce.create("tinymce.plugins.Layer",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertLayer",c._insertLayer,c);a.addCommand("mceMoveForward",function(){c._move(1)});a.addCommand("mceMoveBackward",function(){c._move(-1)});a.addCommand("mceMakeAbsolute",function(){c._toggleAbsolute()});a.addButton("moveforward",{title:"layer.forward_desc",cmd:"mceMoveForward"});a.addButton("movebackward",{title:"layer.backward_desc",cmd:"mceMoveBackward"});a.addButton("absolute",{title:"layer.absolute_desc",cmd:"mceMakeAbsolute"});a.addButton("insertlayer",{title:"layer.insertlayer_desc",cmd:"mceInsertLayer"});a.onInit.add(function(){if(tinymce.isIE){a.getDoc().execCommand("2D-Position",false,true)}});a.onNodeChange.add(c._nodeChange,c);a.onVisualAid.add(c._visualAid,c)},getInfo:function(){return{longname:"Layer",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var c,d;c=this._getParentLayer(e);d=b.dom.getParent(e,"DIV,P,IMG");if(!d){a.setDisabled("absolute",1);a.setDisabled("moveforward",1);a.setDisabled("movebackward",1)}else{a.setDisabled("absolute",0);a.setDisabled("moveforward",!c);a.setDisabled("movebackward",!c);a.setActive("absolute",c&&c.style.position.toLowerCase()=="absolute")}},_visualAid:function(a,c,b){var d=a.dom;tinymce.each(d.select("div,p",c),function(f){if(/^(absolute|relative|static)$/i.test(f.style.position)){if(b){d.addClass(f,"mceItemVisualAid")}else{d.removeClass(f,"mceItemVisualAid")}}})},_move:function(h){var b=this.editor,f,g=[],e=this._getParentLayer(b.selection.getNode()),c=-1,j=-1,a;a=[];tinymce.walk(b.getBody(),function(d){if(d.nodeType==1&&/^(absolute|relative|static)$/i.test(d.style.position)){a.push(d)}},"childNodes");for(f=0;f<a.length;f++){g[f]=a[f].style.zIndex?parseInt(a[f].style.zIndex):0;if(c<0&&a[f]==e){c=f}}if(h<0){for(f=0;f<g.length;f++){if(g[f]<g[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;f<g.length;f++){if(g[f]>g[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})();
|
1 |
+
(function(){tinymce.create("tinymce.plugins.Layer",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertLayer",c._insertLayer,c);a.addCommand("mceMoveForward",function(){c._move(1)});a.addCommand("mceMoveBackward",function(){c._move(-1)});a.addCommand("mceMakeAbsolute",function(){c._toggleAbsolute()});a.addButton("moveforward",{title:"layer.forward_desc",cmd:"mceMoveForward"});a.addButton("movebackward",{title:"layer.backward_desc",cmd:"mceMoveBackward"});a.addButton("absolute",{title:"layer.absolute_desc",cmd:"mceMakeAbsolute"});a.addButton("insertlayer",{title:"layer.insertlayer_desc",cmd:"mceInsertLayer"});a.onInit.add(function(){if(tinymce.isIE){a.getDoc().execCommand("2D-Position",false,true)}});a.onNodeChange.add(c._nodeChange,c);a.onVisualAid.add(c._visualAid,c)},getInfo:function(){return{longname:"Layer",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var c,d;c=this._getParentLayer(e);d=b.dom.getParent(e,"DIV,P,IMG");if(!d){a.setDisabled("absolute",1);a.setDisabled("moveforward",1);a.setDisabled("movebackward",1)}else{a.setDisabled("absolute",0);a.setDisabled("moveforward",!c);a.setDisabled("movebackward",!c);a.setActive("absolute",c&&c.style.position.toLowerCase()=="absolute")}},_visualAid:function(a,c,b){var d=a.dom;tinymce.each(d.select("div,p",c),function(f){if(/^(absolute|relative|static)$/i.test(f.style.position)){if(b){d.addClass(f,"mceItemVisualAid")}else{d.removeClass(f,"mceItemVisualAid")}}})},_move:function(h){var b=this.editor,f,g=[],e=this._getParentLayer(b.selection.getNode()),c=-1,j=-1,a;a=[];tinymce.walk(b.getBody(),function(d){if(d.nodeType==1&&/^(absolute|relative|static)$/i.test(d.style.position)){a.push(d)}},"childNodes");for(f=0;f<a.length;f++){g[f]=a[f].style.zIndex?parseInt(a[f].style.zIndex):0;if(c<0&&a[f]==e){c=f}}if(h<0){for(f=0;f<g.length;f++){if(g[f]<g[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;f<g.length;f++){if(g[f]>g[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.dom.setAttrib(b,"data-mce-style","");a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})();
|
mce/media/css/content.css
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
.mceItemFlash, .mceItemShockWave, .mceItemQuickTime, .mceItemWindowsMedia, .mceItemRealMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc;}
|
2 |
-
.mceItemShockWave {background-image: url(../img/shockwave.gif);}
|
3 |
-
.mceItemFlash {background-image:url(../img/flash.gif);}
|
4 |
-
.mceItemQuickTime {background-image:url(../img/quicktime.gif);}
|
5 |
-
.mceItemWindowsMedia {background-image:url(../img/windowsmedia.gif);}
|
6 |
-
.mceItemRealMedia {background-image:url(../img/realmedia.gif);}
|
|
|
|
|
|
|
|
|
|
|
|
mce/media/css/media.css
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
#id, #name, #hspace, #vspace, #class_name, #align { width: 100px }
|
2 |
-
#hspace, #vspace { width: 50px }
|
3 |
-
#flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px }
|
4 |
-
#flash_base, #flash_flashvars { width: 240px }
|
5 |
-
#width, #height { width: 40px }
|
6 |
-
#src, #media_type { width: 250px }
|
7 |
-
#class { width: 120px }
|
8 |
-
#prev { margin: 0; border: 1px solid black; width: 380px; height: 230px; overflow: auto }
|
9 |
-
.panel_wrapper div.current { height: 390px; overflow: auto }
|
10 |
-
#flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { display: none }
|
11 |
-
.mceAddSelectValue { background-color: #DDDDDD }
|
12 |
-
#qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, #qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, #qt_volume { width: 70px }
|
13 |
-
#wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, #wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, #wmp_volume { width: 70px }
|
14 |
-
#rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px }
|
15 |
-
#shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, #shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { width: 90px }
|
16 |
-
#qt_qtsrc { width: 200px }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mce/media/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var e=this;e.editor=b;e.url=c;function f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("param[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open({file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("media",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._objectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")}if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name=="img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||100));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mceItem/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf-96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemWindowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa0055595a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;case"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/<img[^>]+>/g,function(j){var i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j='<script type="text/javascript">write'+i.substring(7)+"({"+e._serialize(at)+"});<\/script>"}return j})}})},getInfo:function(){return{longname:"Media",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_objectsToSpans:function(b,e){var c=this,d=e.content;d=d.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi,function(g,f,i){var h=c._parse(i);return'<img class="mceItem'+f+'" title="'+b.dom.encode(i)+'" src="'+c.url+'/img/trans.gif" width="'+h.width+'" height="'+h.height+'" />'});d=d.replace(/<object([^>]*)>/gi,'<span class="mceItemObject" $1>');d=d.replace(/<embed([^>]*)\/?>/gi,'<span class="mceItemEmbed" $1></span>');d=d.replace(/<embed([^>]*)>/gi,'<span class="mceItemEmbed" $1>');d=d.replace(/<\/(object)([^>]*)>/gi,"</span>");d=d.replace(/<\/embed>/gi,"");d=d.replace(/<param([^>]*)>/gi,function(g,f){return"<span "+f.replace(/value=/gi,"_mce_value=")+' class="mceItemParam"></span>'});d=d.replace(/\/ class=\"mceItemParam\"><\/span>/gi,'class="mceItemParam"></span>');e.content=d},_buildObj:function(g,h){var d,c=this.editor,f=c.dom,e=this._parse(h.title),b;b=c.getParam("media_strict",true)&&g.type=="application/x-shockwave-flash";e.width=g.width=f.getAttrib(h,"width")||100;e.height=g.height=f.getAttrib(h,"height")||100;if(e.src){e.src=c.convertURL(e.src,"src",h)}if(b){d=f.create("span",{id:e.id,_mce_name:"object",type:"application/x-shockwave-flash",data:e.src,style:f.getAttrib(h,"style"),width:g.width,height:g.height})}else{d=f.create("span",{id:e.id,_mce_name:"object",classid:"clsid:"+g.classid,style:f.getAttrib(h,"style"),codebase:g.codebase,width:g.width,height:g.height})}a(e,function(j,i){if(!/^(width|height|codebase|classid|id|_cx|_cy)$/.test(i)){if(g.type=="application/x-mplayer2"&&i=="src"&&!e.url){i="url"}if(j){f.add(d,"span",{_mce_name:"param",name:i,_mce_value:j})}}});if(!b){f.add(d,"span",tinymce.extend({_mce_name:"embed",type:g.type,style:f.getAttrib(h,"style")},e))}return d},_spansToImgs:function(e){var d=this,f=d.editor.dom,b,c;a(f.select("span",e),function(g){if(f.getAttrib(g,"class")=="mceItemObject"){c=f.getAttrib(g,"classid").toLowerCase().replace(/\s+/g,"");switch(c){case"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000":f.replace(d._createImg("mceItemFlash",g),g);break;case"clsid:166b1bca-3f9c-11cf-8075-444553540000":f.replace(d._createImg("mceItemShockWave",g),g);break;case"clsid:6bf52a52-394a-11d3-b153-00c04f79faa6":case"clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95":case"clsid:05589fa1-c356-11ce-bf01-00aa0055595a":f.replace(d._createImg("mceItemWindowsMedia",g),g);break;case"clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b":f.replace(d._createImg("mceItemQuickTime",g),g);break;case"clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa":f.replace(d._createImg("mceItemRealMedia",g),g);break;default:f.replace(d._createImg("mceItemFlash",g),g)}return}if(f.getAttrib(g,"class")=="mceItemEmbed"){switch(f.getAttrib(g,"type")){case"application/x-shockwave-flash":f.replace(d._createImg("mceItemFlash",g),g);break;case"application/x-director":f.replace(d._createImg("mceItemShockWave",g),g);break;case"application/x-mplayer2":f.replace(d._createImg("mceItemWindowsMedia",g),g);break;case"video/quicktime":f.replace(d._createImg("mceItemQuickTime",g),g);break;case"audio/x-pn-realaudio-plugin":f.replace(d._createImg("mceItemRealMedia",g),g);break;default:f.replace(d._createImg("mceItemFlash",g),g)}}})},_createImg:function(c,h){var b,g=this.editor.dom,f={},e="",d;d=["id","name","width","height","bgcolor","align","flashvars","src","wmode","allowfullscreen","quality","data"];b=g.create("img",{src:this.url+"/img/trans.gif",width:g.getAttrib(h,"width")||100,height:g.getAttrib(h,"height")||100,style:g.getAttrib(h,"style"),"class":c});a(d,function(i){var j=g.getAttrib(h,i);if(j){f[i]=j}});a(g.select("span",h),function(i){if(g.hasClass(i,"mceItemParam")){f[g.getAttrib(i,"name")]=g.getAttrib(i,"_mce_value")}});if(f.movie){f.src=f.movie;delete f.movie}if(!f.src){f.src=f.data;delete f.data}h=g.select(".mceItemEmbed",h)[0];if(h){a(d,function(i){var j=g.getAttrib(h,i);if(j&&!f[i]){f[i]=j}})}delete f.width;delete f.height;b.title=this._serialize(f);return b},_parse:function(b){return tinymce.util.JSON.parse("{"+b+"}")},_serialize:function(b){return tinymce.util.JSON.serialize(b).replace(/[{}]/g,"")}});tinymce.PluginManager.add("media",tinymce.plugins.MediaPlugin)})();
|
|
mce/media/img/flash.gif
DELETED
Binary file
|
mce/media/img/flv_player.swf
DELETED
Binary file
|
mce/media/img/quicktime.gif
DELETED
Binary file
|
mce/media/img/realmedia.gif
DELETED
Binary file
|
mce/media/img/shockwave.gif
DELETED
Binary file
|
mce/media/img/trans.gif
DELETED
Binary file
|
mce/media/img/windowsmedia.gif
DELETED
Binary file
|
mce/media/js/embed.js
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
|
3 |
-
*/
|
4 |
-
|
5 |
-
function writeFlash(p) {
|
6 |
-
writeEmbed(
|
7 |
-
'D27CDB6E-AE6D-11cf-96B8-444553540000',
|
8 |
-
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
|
9 |
-
'application/x-shockwave-flash',
|
10 |
-
p
|
11 |
-
);
|
12 |
-
}
|
13 |
-
|
14 |
-
function writeShockWave(p) {
|
15 |
-
writeEmbed(
|
16 |
-
'166B1BCA-3F9C-11CF-8075-444553540000',
|
17 |
-
'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
|
18 |
-
'application/x-director',
|
19 |
-
p
|
20 |
-
);
|
21 |
-
}
|
22 |
-
|
23 |
-
function writeQuickTime(p) {
|
24 |
-
writeEmbed(
|
25 |
-
'02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
|
26 |
-
'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
|
27 |
-
'video/quicktime',
|
28 |
-
p
|
29 |
-
);
|
30 |
-
}
|
31 |
-
|
32 |
-
function writeRealMedia(p) {
|
33 |
-
writeEmbed(
|
34 |
-
'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
|
35 |
-
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
|
36 |
-
'audio/x-pn-realaudio-plugin',
|
37 |
-
p
|
38 |
-
);
|
39 |
-
}
|
40 |
-
|
41 |
-
function writeWindowsMedia(p) {
|
42 |
-
p.url = p.src;
|
43 |
-
writeEmbed(
|
44 |
-
'6BF52A52-394A-11D3-B153-00C04F79FAA6',
|
45 |
-
'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
|
46 |
-
'application/x-mplayer2',
|
47 |
-
p
|
48 |
-
);
|
49 |
-
}
|
50 |
-
|
51 |
-
function writeEmbed(cls, cb, mt, p) {
|
52 |
-
var h = '', n;
|
53 |
-
|
54 |
-
h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
|
55 |
-
h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
|
56 |
-
h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
|
57 |
-
h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
|
58 |
-
h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
|
59 |
-
h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
|
60 |
-
h += '>';
|
61 |
-
|
62 |
-
for (n in p)
|
63 |
-
h += '<param name="' + n + '" value="' + p[n] + '">';
|
64 |
-
|
65 |
-
h += '<embed type="' + mt + '"';
|
66 |
-
|
67 |
-
for (n in p)
|
68 |
-
h += n + '="' + p[n] + '" ';
|
69 |
-
|
70 |
-
h += '></embed></object>';
|
71 |
-
|
72 |
-
document.write(h);
|
73 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mce/media/js/media.js
DELETED
@@ -1,630 +0,0 @@
|
|
1 |
-
tinyMCEPopup.requireLangPack();
|
2 |
-
|
3 |
-
var oldWidth, oldHeight, ed, url;
|
4 |
-
|
5 |
-
if (url = tinyMCEPopup.getParam("media_external_list_url"))
|
6 |
-
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
|
7 |
-
|
8 |
-
function init() {
|
9 |
-
var pl = "", f, val;
|
10 |
-
var type = "flash", fe, i;
|
11 |
-
|
12 |
-
ed = tinyMCEPopup.editor;
|
13 |
-
|
14 |
-
tinyMCEPopup.resizeToInnerSize();
|
15 |
-
f = document.forms[0]
|
16 |
-
|
17 |
-
fe = ed.selection.getNode();
|
18 |
-
if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
|
19 |
-
pl = fe.title;
|
20 |
-
|
21 |
-
switch (ed.dom.getAttrib(fe, 'class')) {
|
22 |
-
case 'mceItemFlash':
|
23 |
-
type = 'flash';
|
24 |
-
break;
|
25 |
-
|
26 |
-
case 'mceItemFlashVideo':
|
27 |
-
type = 'flv';
|
28 |
-
break;
|
29 |
-
|
30 |
-
case 'mceItemShockWave':
|
31 |
-
type = 'shockwave';
|
32 |
-
break;
|
33 |
-
|
34 |
-
case 'mceItemWindowsMedia':
|
35 |
-
type = 'wmp';
|
36 |
-
break;
|
37 |
-
|
38 |
-
case 'mceItemQuickTime':
|
39 |
-
type = 'qt';
|
40 |
-
break;
|
41 |
-
|
42 |
-
case 'mceItemRealMedia':
|
43 |
-
type = 'rmp';
|
44 |
-
break;
|
45 |
-
}
|
46 |
-
|
47 |
-
document.forms[0].insert.value = ed.getLang('update', 'Insert', true);
|
48 |
-
}
|
49 |
-
|
50 |
-
document.getElementById('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media');
|
51 |
-
document.getElementById('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','qt_qtsrc','media','media');
|
52 |
-
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
53 |
-
|
54 |
-
var html = getMediaListHTML('medialist','src','media','media');
|
55 |
-
if (html == "")
|
56 |
-
document.getElementById("linklistrow").style.display = 'none';
|
57 |
-
else
|
58 |
-
document.getElementById("linklistcontainer").innerHTML = html;
|
59 |
-
|
60 |
-
// Resize some elements
|
61 |
-
if (isVisible('filebrowser'))
|
62 |
-
document.getElementById('src').style.width = '230px';
|
63 |
-
|
64 |
-
// Setup form
|
65 |
-
if (pl != "") {
|
66 |
-
pl = tinyMCEPopup.editor.plugins.media._parse(pl);
|
67 |
-
|
68 |
-
switch (type) {
|
69 |
-
case "flash":
|
70 |
-
setBool(pl, 'flash', 'play');
|
71 |
-
setBool(pl, 'flash', 'loop');
|
72 |
-
setBool(pl, 'flash', 'menu');
|
73 |
-
setBool(pl, 'flash', 'swliveconnect');
|
74 |
-
setStr(pl, 'flash', 'quality');
|
75 |
-
setStr(pl, 'flash', 'scale');
|
76 |
-
setStr(pl, 'flash', 'salign');
|
77 |
-
setStr(pl, 'flash', 'wmode');
|
78 |
-
setStr(pl, 'flash', 'base');
|
79 |
-
setStr(pl, 'flash', 'flashvars');
|
80 |
-
break;
|
81 |
-
|
82 |
-
case "qt":
|
83 |
-
setBool(pl, 'qt', 'loop');
|
84 |
-
setBool(pl, 'qt', 'autoplay');
|
85 |
-
setBool(pl, 'qt', 'cache');
|
86 |
-
setBool(pl, 'qt', 'controller');
|
87 |
-
setBool(pl, 'qt', 'correction');
|
88 |
-
setBool(pl, 'qt', 'enablejavascript');
|
89 |
-
setBool(pl, 'qt', 'kioskmode');
|
90 |
-
setBool(pl, 'qt', 'autohref');
|
91 |
-
setBool(pl, 'qt', 'playeveryframe');
|
92 |
-
setBool(pl, 'qt', 'tarsetcache');
|
93 |
-
setStr(pl, 'qt', 'scale');
|
94 |
-
setStr(pl, 'qt', 'starttime');
|
95 |
-
setStr(pl, 'qt', 'endtime');
|
96 |
-
setStr(pl, 'qt', 'tarset');
|
97 |
-
setStr(pl, 'qt', 'qtsrcchokespeed');
|
98 |
-
setStr(pl, 'qt', 'volume');
|
99 |
-
setStr(pl, 'qt', 'qtsrc');
|
100 |
-
break;
|
101 |
-
|
102 |
-
case "shockwave":
|
103 |
-
setBool(pl, 'shockwave', 'sound');
|
104 |
-
setBool(pl, 'shockwave', 'progress');
|
105 |
-
setBool(pl, 'shockwave', 'autostart');
|
106 |
-
setBool(pl, 'shockwave', 'swliveconnect');
|
107 |
-
setStr(pl, 'shockwave', 'swvolume');
|
108 |
-
setStr(pl, 'shockwave', 'swstretchstyle');
|
109 |
-
setStr(pl, 'shockwave', 'swstretchhalign');
|
110 |
-
setStr(pl, 'shockwave', 'swstretchvalign');
|
111 |
-
break;
|
112 |
-
|
113 |
-
case "wmp":
|
114 |
-
setBool(pl, 'wmp', 'autostart');
|
115 |
-
setBool(pl, 'wmp', 'enabled');
|
116 |
-
setBool(pl, 'wmp', 'enablecontextmenu');
|
117 |
-
setBool(pl, 'wmp', 'fullscreen');
|
118 |
-
setBool(pl, 'wmp', 'invokeurls');
|
119 |
-
setBool(pl, 'wmp', 'mute');
|
120 |
-
setBool(pl, 'wmp', 'stretchtofit');
|
121 |
-
setBool(pl, 'wmp', 'windowlessvideo');
|
122 |
-
setStr(pl, 'wmp', 'balance');
|
123 |
-
setStr(pl, 'wmp', 'baseurl');
|
124 |
-
setStr(pl, 'wmp', 'captioningid');
|
125 |
-
setStr(pl, 'wmp', 'currentmarker');
|
126 |
-
setStr(pl, 'wmp', 'currentposition');
|
127 |
-
setStr(pl, 'wmp', 'defaultframe');
|
128 |
-
setStr(pl, 'wmp', 'playcount');
|
129 |
-
setStr(pl, 'wmp', 'rate');
|
130 |
-
setStr(pl, 'wmp', 'uimode');
|
131 |
-
setStr(pl, 'wmp', 'volume');
|
132 |
-
break;
|
133 |
-
|
134 |
-
case "rmp":
|
135 |
-
setBool(pl, 'rmp', 'autostart');
|
136 |
-
setBool(pl, 'rmp', 'loop');
|
137 |
-
setBool(pl, 'rmp', 'autogotourl');
|
138 |
-
setBool(pl, 'rmp', 'center');
|
139 |
-
setBool(pl, 'rmp', 'imagestatus');
|
140 |
-
setBool(pl, 'rmp', 'maintainaspect');
|
141 |
-
setBool(pl, 'rmp', 'nojava');
|
142 |
-
setBool(pl, 'rmp', 'prefetch');
|
143 |
-
setBool(pl, 'rmp', 'shuffle');
|
144 |
-
setStr(pl, 'rmp', 'console');
|
145 |
-
setStr(pl, 'rmp', 'controls');
|
146 |
-
setStr(pl, 'rmp', 'numloop');
|
147 |
-
setStr(pl, 'rmp', 'scriptcallbacks');
|
148 |
-
break;
|
149 |
-
}
|
150 |
-
|
151 |
-
setStr(pl, null, 'src');
|
152 |
-
setStr(pl, null, 'id');
|
153 |
-
setStr(pl, null, 'name');
|
154 |
-
setStr(pl, null, 'vspace');
|
155 |
-
setStr(pl, null, 'hspace');
|
156 |
-
setStr(pl, null, 'bgcolor');
|
157 |
-
setStr(pl, null, 'align');
|
158 |
-
setStr(pl, null, 'width');
|
159 |
-
setStr(pl, null, 'height');
|
160 |
-
|
161 |
-
if ((val = ed.dom.getAttrib(fe, "width")) != "")
|
162 |
-
pl.width = f.width.value = val;
|
163 |
-
|
164 |
-
if ((val = ed.dom.getAttrib(fe, "height")) != "")
|
165 |
-
pl.height = f.height.value = val;
|
166 |
-
|
167 |
-
oldWidth = pl.width ? parseInt(pl.width) : 0;
|
168 |
-
oldHeight = pl.height ? parseInt(pl.height) : 0;
|
169 |
-
} else
|
170 |
-
oldWidth = oldHeight = 0;
|
171 |
-
|
172 |
-
selectByValue(f, 'media_type', type);
|
173 |
-
changedType(type);
|
174 |
-
updateColor('bgcolor_pick', 'bgcolor');
|
175 |
-
|
176 |
-
TinyMCE_EditableSelects.init();
|
177 |
-
generatePreview();
|
178 |
-
}
|
179 |
-
|
180 |
-
function insertMedia() {
|
181 |
-
var fe, f = document.forms[0], h;
|
182 |
-
|
183 |
-
tinyMCEPopup.restoreSelection();
|
184 |
-
|
185 |
-
if (!AutoValidator.validate(f)) {
|
186 |
-
tinyMCEPopup.alert(ed.getLang('invalid_data'));
|
187 |
-
return false;
|
188 |
-
}
|
189 |
-
|
190 |
-
f.width.value = f.width.value == "" ? 100 : f.width.value;
|
191 |
-
f.height.value = f.height.value == "" ? 100 : f.height.value;
|
192 |
-
|
193 |
-
fe = ed.selection.getNode();
|
194 |
-
if (fe != null && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
|
195 |
-
switch (f.media_type.options[f.media_type.selectedIndex].value) {
|
196 |
-
case "flash":
|
197 |
-
fe.className = "mceItemFlash";
|
198 |
-
break;
|
199 |
-
|
200 |
-
case "flv":
|
201 |
-
fe.className = "mceItemFlashVideo";
|
202 |
-
break;
|
203 |
-
|
204 |
-
case "shockwave":
|
205 |
-
fe.className = "mceItemShockWave";
|
206 |
-
break;
|
207 |
-
|
208 |
-
case "qt":
|
209 |
-
fe.className = "mceItemQuickTime";
|
210 |
-
break;
|
211 |
-
|
212 |
-
case "wmp":
|
213 |
-
fe.className = "mceItemWindowsMedia";
|
214 |
-
break;
|
215 |
-
|
216 |
-
case "rmp":
|
217 |
-
fe.className = "mceItemRealMedia";
|
218 |
-
break;
|
219 |
-
}
|
220 |
-
|
221 |
-
if (fe.width != f.width.value || fe.height != f.height.value)
|
222 |
-
ed.execCommand('mceRepaint');
|
223 |
-
|
224 |
-
fe.title = serializeParameters();
|
225 |
-
fe.width = f.width.value;
|
226 |
-
fe.height = f.height.value;
|
227 |
-
fe.style.width = f.width.value + (f.width.value.indexOf('%') == -1 ? 'px' : '');
|
228 |
-
fe.style.height = f.height.value + (f.height.value.indexOf('%') == -1 ? 'px' : '');
|
229 |
-
fe.align = f.align.options[f.align.selectedIndex].value;
|
230 |
-
} else {
|
231 |
-
h = '<img src="' + tinyMCEPopup.getWindowArg("plugin_url") + '/img/trans.gif"' ;
|
232 |
-
|
233 |
-
switch (f.media_type.options[f.media_type.selectedIndex].value) {
|
234 |
-
case "flash":
|
235 |
-
h += ' class="mceItemFlash"';
|
236 |
-
break;
|
237 |
-
|
238 |
-
case "flv":
|
239 |
-
h += ' class="mceItemFlashVideo"';
|
240 |
-
break;
|
241 |
-
|
242 |
-
case "shockwave":
|
243 |
-
h += ' class="mceItemShockWave"';
|
244 |
-
break;
|
245 |
-
|
246 |
-
case "qt":
|
247 |
-
h += ' class="mceItemQuickTime"';
|
248 |
-
break;
|
249 |
-
|
250 |
-
case "wmp":
|
251 |
-
h += ' class="mceItemWindowsMedia"';
|
252 |
-
break;
|
253 |
-
|
254 |
-
case "rmp":
|
255 |
-
h += ' class="mceItemRealMedia"';
|
256 |
-
break;
|
257 |
-
}
|
258 |
-
|
259 |
-
h += ' title="' + serializeParameters() + '"';
|
260 |
-
h += ' width="' + f.width.value + '"';
|
261 |
-
h += ' height="' + f.height.value + '"';
|
262 |
-
h += ' align="' + f.align.options[f.align.selectedIndex].value + '"';
|
263 |
-
|
264 |
-
h += ' />';
|
265 |
-
|
266 |
-
ed.execCommand('mceInsertContent', false, h);
|
267 |
-
}
|
268 |
-
|
269 |
-
tinyMCEPopup.close();
|
270 |
-
}
|
271 |
-
|
272 |
-
function updatePreview() {
|
273 |
-
var f = document.forms[0], type;
|
274 |
-
|
275 |
-
f.width.value = f.width.value || '320';
|
276 |
-
f.height.value = f.height.value || '240';
|
277 |
-
|
278 |
-
type = getType(f.src.value);
|
279 |
-
selectByValue(f, 'media_type', type);
|
280 |
-
changedType(type);
|
281 |
-
generatePreview();
|
282 |
-
}
|
283 |
-
|
284 |
-
function getMediaListHTML() {
|
285 |
-
if (typeof(tinyMCEMediaList) != "undefined" && tinyMCEMediaList.length > 0) {
|
286 |
-
var html = "";
|
287 |
-
|
288 |
-
html += '<select id="linklist" name="linklist" style="width: 250px" onchange="this.form.src.value=this.options[this.selectedIndex].value;updatePreview();">';
|
289 |
-
html += '<option value="">---</option>';
|
290 |
-
|
291 |
-
for (var i=0; i<tinyMCEMediaList.length; i++)
|
292 |
-
html += '<option value="' + tinyMCEMediaList[i][1] + '">' + tinyMCEMediaList[i][0] + '</option>';
|
293 |
-
|
294 |
-
html += '</select>';
|
295 |
-
|
296 |
-
return html;
|
297 |
-
}
|
298 |
-
|
299 |
-
return "";
|
300 |
-
}
|
301 |
-
|
302 |
-
function getType(v) {
|
303 |
-
var fo, i, c, el, x, f = document.forms[0];
|
304 |
-
|
305 |
-
fo = ed.getParam("media_types", "flash=swf;flv=flv;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;shockwave=dcr;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm,ra,ram").split(';');
|
306 |
-
|
307 |
-
// YouTube
|
308 |
-
if (v.match(/watch\?v=(.+)(.*)/)) {
|
309 |
-
f.width.value = '425';
|
310 |
-
f.height.value = '350';
|
311 |
-
f.src.value = 'http://www.youtube.com/v/' + v.match(/v=(.*)(.*)/)[0].split('=')[1];
|
312 |
-
return 'flash';
|
313 |
-
}
|
314 |
-
|
315 |
-
// Google video
|
316 |
-
if (v.indexOf('http://video.google.com/videoplay?docid=') == 0) {
|
317 |
-
f.width.value = '425';
|
318 |
-
f.height.value = '326';
|
319 |
-
f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + v.substring('http://video.google.com/videoplay?docid='.length) + '&hl=en';
|
320 |
-
return 'flash';
|
321 |
-
}
|
322 |
-
|
323 |
-
for (i=0; i<fo.length; i++) {
|
324 |
-
c = fo[i].split('=');
|
325 |
-
|
326 |
-
el = c[1].split(',');
|
327 |
-
for (x=0; x<el.length; x++)
|
328 |
-
if (v.indexOf('.' + el[x]) != -1)
|
329 |
-
return c[0];
|
330 |
-
}
|
331 |
-
|
332 |
-
return null;
|
333 |
-
}
|
334 |
-
|
335 |
-
function switchType(v) {
|
336 |
-
var t = getType(v), d = document, f = d.forms[0];
|
337 |
-
|
338 |
-
if (!t)
|
339 |
-
return;
|
340 |
-
|
341 |
-
selectByValue(d.forms[0], 'media_type', t);
|
342 |
-
changedType(t);
|
343 |
-
|
344 |
-
// Update qtsrc also
|
345 |
-
if (t == 'qt' && f.src.value.toLowerCase().indexOf('rtsp://') != -1) {
|
346 |
-
alert(ed.getLang("media_qt_stream_warn"));
|
347 |
-
|
348 |
-
if (f.qt_qtsrc.value == '')
|
349 |
-
f.qt_qtsrc.value = f.src.value;
|
350 |
-
}
|
351 |
-
}
|
352 |
-
|
353 |
-
function changedType(t) {
|
354 |
-
var d = document;
|
355 |
-
|
356 |
-
d.getElementById('flash_options').style.display = 'none';
|
357 |
-
d.getElementById('flv_options').style.display = 'none';
|
358 |
-
d.getElementById('qt_options').style.display = 'none';
|
359 |
-
d.getElementById('shockwave_options').style.display = 'none';
|
360 |
-
d.getElementById('wmp_options').style.display = 'none';
|
361 |
-
d.getElementById('rmp_options').style.display = 'none';
|
362 |
-
|
363 |
-
if (t)
|
364 |
-
d.getElementById(t + '_options').style.display = 'block';
|
365 |
-
}
|
366 |
-
|
367 |
-
function serializeParameters() {
|
368 |
-
var d = document, f = d.forms[0], s = '';
|
369 |
-
|
370 |
-
switch (f.media_type.options[f.media_type.selectedIndex].value) {
|
371 |
-
case "flash":
|
372 |
-
s += getBool('flash', 'play', true);
|
373 |
-
s += getBool('flash', 'loop', true);
|
374 |
-
s += getBool('flash', 'menu', true);
|
375 |
-
s += getBool('flash', 'swliveconnect', false);
|
376 |
-
s += getStr('flash', 'quality');
|
377 |
-
s += getStr('flash', 'scale');
|
378 |
-
s += getStr('flash', 'salign');
|
379 |
-
s += getStr('flash', 'wmode');
|
380 |
-
s += getStr('flash', 'base');
|
381 |
-
s += getStr('flash', 'flashvars');
|
382 |
-
break;
|
383 |
-
|
384 |
-
case "qt":
|
385 |
-
s += getBool('qt', 'loop', false);
|
386 |
-
s += getBool('qt', 'autoplay', true);
|
387 |
-
s += getBool('qt', 'cache', false);
|
388 |
-
s += getBool('qt', 'controller', true);
|
389 |
-
s += getBool('qt', 'correction', false, 'none', 'full');
|
390 |
-
s += getBool('qt', 'enablejavascript', false);
|
391 |
-
s += getBool('qt', 'kioskmode', false);
|
392 |
-
s += getBool('qt', 'autohref', false);
|
393 |
-
s += getBool('qt', 'playeveryframe', false);
|
394 |
-
s += getBool('qt', 'targetcache', false);
|
395 |
-
s += getStr('qt', 'scale');
|
396 |
-
s += getStr('qt', 'starttime');
|
397 |
-
s += getStr('qt', 'endtime');
|
398 |
-
s += getStr('qt', 'target');
|
399 |
-
s += getStr('qt', 'qtsrcchokespeed');
|
400 |
-
s += getStr('qt', 'volume');
|
401 |
-
s += getStr('qt', 'qtsrc');
|
402 |
-
break;
|
403 |
-
|
404 |
-
case "shockwave":
|
405 |
-
s += getBool('shockwave', 'sound');
|
406 |
-
s += getBool('shockwave', 'progress');
|
407 |
-
s += getBool('shockwave', 'autostart');
|
408 |
-
s += getBool('shockwave', 'swliveconnect');
|
409 |
-
s += getStr('shockwave', 'swvolume');
|
410 |
-
s += getStr('shockwave', 'swstretchstyle');
|
411 |
-
s += getStr('shockwave', 'swstretchhalign');
|
412 |
-
s += getStr('shockwave', 'swstretchvalign');
|
413 |
-
break;
|
414 |
-
|
415 |
-
case "wmp":
|
416 |
-
s += getBool('wmp', 'autostart', true);
|
417 |
-
s += getBool('wmp', 'enabled', false);
|
418 |
-
s += getBool('wmp', 'enablecontextmenu', true);
|
419 |
-
s += getBool('wmp', 'fullscreen', false);
|
420 |
-
s += getBool('wmp', 'invokeurls', true);
|
421 |
-
s += getBool('wmp', 'mute', false);
|
422 |
-
s += getBool('wmp', 'stretchtofit', false);
|
423 |
-
s += getBool('wmp', 'windowlessvideo', false);
|
424 |
-
s += getStr('wmp', 'balance');
|
425 |
-
s += getStr('wmp', 'baseurl');
|
426 |
-
s += getStr('wmp', 'captioningid');
|
427 |
-
s += getStr('wmp', 'currentmarker');
|
428 |
-
s += getStr('wmp', 'currentposition');
|
429 |
-
s += getStr('wmp', 'defaultframe');
|
430 |
-
s += getStr('wmp', 'playcount');
|
431 |
-
s += getStr('wmp', 'rate');
|
432 |
-
s += getStr('wmp', 'uimode');
|
433 |
-
s += getStr('wmp', 'volume');
|
434 |
-
break;
|
435 |
-
|
436 |
-
case "rmp":
|
437 |
-
s += getBool('rmp', 'autostart', false);
|
438 |
-
s += getBool('rmp', 'loop', false);
|
439 |
-
s += getBool('rmp', 'autogotourl', true);
|
440 |
-
s += getBool('rmp', 'center', false);
|
441 |
-
s += getBool('rmp', 'imagestatus', true);
|
442 |
-
s += getBool('rmp', 'maintainaspect', false);
|
443 |
-
s += getBool('rmp', 'nojava', false);
|
444 |
-
s += getBool('rmp', 'prefetch', false);
|
445 |
-
s += getBool('rmp', 'shuffle', false);
|
446 |
-
s += getStr('rmp', 'console');
|
447 |
-
s += getStr('rmp', 'controls');
|
448 |
-
s += getStr('rmp', 'numloop');
|
449 |
-
s += getStr('rmp', 'scriptcallbacks');
|
450 |
-
break;
|
451 |
-
}
|
452 |
-
|
453 |
-
s += getStr(null, 'id');
|
454 |
-
s += getStr(null, 'name');
|
455 |
-
s += getStr(null, 'src');
|
456 |
-
s += getStr(null, 'align');
|
457 |
-
s += getStr(null, 'bgcolor');
|
458 |
-
s += getInt(null, 'vspace');
|
459 |
-
s += getInt(null, 'hspace');
|
460 |
-
s += getStr(null, 'width');
|
461 |
-
s += getStr(null, 'height');
|
462 |
-
|
463 |
-
s = s.length > 0 ? s.substring(0, s.length - 1) : s;
|
464 |
-
|
465 |
-
return s;
|
466 |
-
}
|
467 |
-
|
468 |
-
function setBool(pl, p, n) {
|
469 |
-
if (typeof(pl[n]) == "undefined")
|
470 |
-
return;
|
471 |
-
|
472 |
-
document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false';
|
473 |
-
}
|
474 |
-
|
475 |
-
function setStr(pl, p, n) {
|
476 |
-
var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n];
|
477 |
-
|
478 |
-
if (typeof(pl[n]) == "undefined")
|
479 |
-
return;
|
480 |
-
|
481 |
-
if (e.type == "text")
|
482 |
-
e.value = pl[n];
|
483 |
-
else
|
484 |
-
selectByValue(f, (p != null ? p + "_" : '') + n, pl[n]);
|
485 |
-
}
|
486 |
-
|
487 |
-
function getBool(p, n, d, tv, fv) {
|
488 |
-
var v = document.forms[0].elements[p + "_" + n].checked;
|
489 |
-
|
490 |
-
tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";
|
491 |
-
fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";
|
492 |
-
|
493 |
-
return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',");
|
494 |
-
}
|
495 |
-
|
496 |
-
function getStr(p, n, d) {
|
497 |
-
var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
|
498 |
-
var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
|
499 |
-
|
500 |
-
if (n == 'src')
|
501 |
-
v = tinyMCEPopup.editor.convertURL(v, 'src', null);
|
502 |
-
|
503 |
-
return ((n == d || v == '') ? '' : n + ":'" + jsEncode(v) + "',");
|
504 |
-
}
|
505 |
-
|
506 |
-
function getInt(p, n, d) {
|
507 |
-
var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
|
508 |
-
var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
|
509 |
-
|
510 |
-
return ((n == d || v == '') ? '' : n + ":" + v.replace(/[^0-9]+/g, '') + ",");
|
511 |
-
}
|
512 |
-
|
513 |
-
function jsEncode(s) {
|
514 |
-
s = s.replace(new RegExp('\\\\', 'g'), '\\\\');
|
515 |
-
s = s.replace(new RegExp('"', 'g'), '\\"');
|
516 |
-
s = s.replace(new RegExp("'", 'g'), "\\'");
|
517 |
-
|
518 |
-
return s;
|
519 |
-
}
|
520 |
-
|
521 |
-
function generatePreview(c) {
|
522 |
-
var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, type, codebase, wp, hp, nw, nh;
|
523 |
-
|
524 |
-
p.innerHTML = '<!-- x --->';
|
525 |
-
|
526 |
-
nw = parseInt(f.width.value);
|
527 |
-
nh = parseInt(f.height.value);
|
528 |
-
|
529 |
-
if (f.width.value != "" && f.height.value != "") {
|
530 |
-
if (f.constrain.checked) {
|
531 |
-
if (c == 'width' && oldWidth != 0) {
|
532 |
-
wp = nw / oldWidth;
|
533 |
-
nh = Math.round(wp * nh);
|
534 |
-
f.height.value = nh;
|
535 |
-
} else if (c == 'height' && oldHeight != 0) {
|
536 |
-
hp = nh / oldHeight;
|
537 |
-
nw = Math.round(hp * nw);
|
538 |
-
f.width.value = nw;
|
539 |
-
}
|
540 |
-
}
|
541 |
-
}
|
542 |
-
|
543 |
-
if (f.width.value != "")
|
544 |
-
oldWidth = nw;
|
545 |
-
|
546 |
-
if (f.height.value != "")
|
547 |
-
oldHeight = nh;
|
548 |
-
|
549 |
-
// After constrain
|
550 |
-
pl = serializeParameters();
|
551 |
-
|
552 |
-
switch (f.media_type.options[f.media_type.selectedIndex].value) {
|
553 |
-
case "flash":
|
554 |
-
cls = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
|
555 |
-
codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';
|
556 |
-
type = 'application/x-shockwave-flash';
|
557 |
-
break;
|
558 |
-
|
559 |
-
case "shockwave":
|
560 |
-
cls = 'clsid:166B1BCA-3F9C-11CF-8075-444553540000';
|
561 |
-
codebase = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';
|
562 |
-
type = 'application/x-director';
|
563 |
-
break;
|
564 |
-
|
565 |
-
case "qt":
|
566 |
-
cls = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
|
567 |
-
codebase = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';
|
568 |
-
type = 'video/quicktime';
|
569 |
-
break;
|
570 |
-
|
571 |
-
case "wmp":
|
572 |
-
cls = ed.getParam('media_wmp6_compatible') ? 'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6';
|
573 |
-
codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
|
574 |
-
type = 'application/x-mplayer2';
|
575 |
-
break;
|
576 |
-
|
577 |
-
case "rmp":
|
578 |
-
cls = 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';
|
579 |
-
codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
|
580 |
-
type = 'audio/x-pn-realaudio-plugin';
|
581 |
-
break;
|
582 |
-
}
|
583 |
-
|
584 |
-
if (pl == '') {
|
585 |
-
p.innerHTML = '';
|
586 |
-
return;
|
587 |
-
}
|
588 |
-
|
589 |
-
pl = tinyMCEPopup.editor.plugins.media._parse(pl);
|
590 |
-
|
591 |
-
if (!pl.src) {
|
592 |
-
p.innerHTML = '';
|
593 |
-
return;
|
594 |
-
}
|
595 |
-
|
596 |
-
pl.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(pl.src);
|
597 |
-
pl.width = !pl.width ? 100 : pl.width;
|
598 |
-
pl.height = !pl.height ? 100 : pl.height;
|
599 |
-
pl.id = !pl.id ? 'obj' : pl.id;
|
600 |
-
pl.name = !pl.name ? 'eobj' : pl.name;
|
601 |
-
pl.align = !pl.align ? '' : pl.align;
|
602 |
-
|
603 |
-
// Avoid annoying warning about insecure items
|
604 |
-
if (!tinymce.isIE || document.location.protocol != 'https:') {
|
605 |
-
h += '<object classid="' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">';
|
606 |
-
|
607 |
-
for (n in pl) {
|
608 |
-
h += '<param name="' + n + '" value="' + pl[n] + '">';
|
609 |
-
|
610 |
-
// Add extra url parameter if it's an absolute URL
|
611 |
-
if (n == 'src' && pl[n].indexOf('://') != -1)
|
612 |
-
h += '<param name="url" value="' + pl[n] + '" />';
|
613 |
-
}
|
614 |
-
}
|
615 |
-
|
616 |
-
h += '<embed type="' + type + '" ';
|
617 |
-
|
618 |
-
for (n in pl)
|
619 |
-
h += n + '="' + pl[n] + '" ';
|
620 |
-
|
621 |
-
h += '></embed>';
|
622 |
-
|
623 |
-
// Avoid annoying warning about insecure items
|
624 |
-
if (!tinymce.isIE || document.location.protocol != 'https:')
|
625 |
-
h += '</object>';
|
626 |
-
|
627 |
-
p.innerHTML = "<!-- x --->" + h;
|
628 |
-
}
|
629 |
-
|
630 |
-
tinyMCEPopup.onInit.add(init);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mce/media/langs/de_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('de.media_dlg',{list:"Liste",file:"Datei/URL",advanced:"Erweitert",general:"Allgemein",title:"Multimedia-Inhalte einf\u00fcgen/bearbeiten",align_top_left:"Oben Links",align_center:"Zentriert",align_left:"Links",align_bottom:"Unten",align_right:"Rechts",align_top:"Oben",qt_stream_warn:"In den Erweiterten Einstellungen sollten im Feld \'QT Src\' gestreamte RTSP Resourcen hinzugef\u00fcgt werden.\\nZus\u00e4tzlich sollten Sie dort auch eine nicht-gestreamte Resource angeben.",qtsrc:"Angabe zu QT Src",progress:"Fortschritt",sound:"Ton",swstretchvalign:"Stretch V-Ausrichtung",swstretchhalign:"Stretch H-Ausrichtung",swstretchstyle:"Stretch-Art",scriptcallbacks:"Script callbacks",align_top_right:"Oben Rechts",uimode:"UI Modus",rate:"Rate",playcount:"Z\u00e4hler",defaultframe:"Frame-Voreinstellung",currentposition:"Aktuelle Position",currentmarker:"Aktueller Marker",captioningid:"Captioning id",baseurl:"Base URL",balance:"Balance",windowlessvideo:"Fensterloses Video",stretchtofit:"Anzeigefl\u00e4che an verf\u00fcgbaren Platz anpassen",mute:"Stumm",invokeurls:"Invoke URLs",fullscreen:"Vollbild",enabled:"Aktiviert",autostart:"Autostart",volume:"Lautst\u00e4rke",target:"Ziel",qtsrcchokespeed:"Choke speed",href:"Href",endtime:"Endzeitpunkt",starttime:"Startzeitpunkt",enablejavascript:"JavaScript aktivieren",correction:"Ohne Korrektur",targetcache:"Ziel zwischenspeichern",playeveryframe:"Jeden Frame abspielen",kioskmode:"Kioskmodus",controller:"Controller",menu:"Men\u00fc anzeigen",loop:"Wiederholung",play:"Automatisches Abspielen",hspace:"Horizontaler Abstand",vspace:"Vertikaler Abstand",class_name:"CSS-Klasse",name:"Name",id:"Id",type:"Typ",size:"Abmessungen",preview:"Vorschau",constrain_proportions:"Proportionen erhalten",controls:"Steuerung",numloop:"Anzahl Wiederholungen",console:"Konsole",cache:"Zwischenspeicher",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flashvariablen",base:"Base",bgcolor:"Hintergrund",wmode:"WMode",salign:"S-Ausrichtung",align:"Ausrichtung",scale:"Skalierung",quality:"Qualit\u00e4t",shuffle:"Zuf\u00e4llige Wiedergabe",prefetch:"Prefetch",nojava:"Kein Java",maintainaspect:"Bildverh\u00e4ltnis beibehalten",imagestatus:"Bildstatus",center:"Zentriert",autogotourl:"Auto goto URL",shockwave_options:"Shockwave-Optionen",rmp_options:"Optionen f\u00fcr Real Media Player",wmp_options:"Optionen f\u00fcr Windows Media Player",qt_options:"Quicktime-Optionen",flash_options:"Flash-Optionen",hidden:"Versteckt",align_bottom_left:"Unten Links",align_bottom_right:"Unten Rechts",flv_options:"Optionen f\u00fcr Flash Video",flv_scalemode:"Skalierungsmodus",flv_buffer:"Puffer",flv_startimage:"Startbild",flv_starttime:"Startzeitpunkt",flv_defaultvolume:"Standardlautst\u00e4rke",flv_hiddengui:"Versteckte GUI",flv_autostart:"Autostart",flv_loop:"Wiederholung",flv_showscalemodes:"Skalierungsmodi anzeigen",flv_smoothvideo:"Smooth Video",flv_jscallback:"JS Callback",html5_video_options:"HTML5 Video Optionen",altsource1:"Alternative Quelle 1",altsource2:"Alternative Quelle 2",preload:"Preload",poster:"Poster",source:"Quelle"});
|
|
mce/media/langs/en_dlg.js
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('en.media_dlg',{
|
2 |
-
title:"Insert / edit embedded media",
|
3 |
-
general:"General",
|
4 |
-
advanced:"Advanced",
|
5 |
-
file:"File/URL",
|
6 |
-
list:"List",
|
7 |
-
size:"Dimensions",
|
8 |
-
preview:"Preview",
|
9 |
-
constrain_proportions:"Constrain proportions",
|
10 |
-
type:"Type",
|
11 |
-
id:"Id",
|
12 |
-
name:"Name",
|
13 |
-
class_name:"Class",
|
14 |
-
vspace:"V-Space",
|
15 |
-
hspace:"H-Space",
|
16 |
-
play:"Auto play",
|
17 |
-
loop:"Loop",
|
18 |
-
menu:"Show menu",
|
19 |
-
quality:"Quality",
|
20 |
-
scale:"Scale",
|
21 |
-
align:"Align",
|
22 |
-
salign:"SAlign",
|
23 |
-
wmode:"WMode",
|
24 |
-
bgcolor:"Background",
|
25 |
-
base:"Base",
|
26 |
-
flashvars:"Flashvars",
|
27 |
-
liveconnect:"SWLiveConnect",
|
28 |
-
autohref:"AutoHREF",
|
29 |
-
cache:"Cache",
|
30 |
-
hidden:"Hidden",
|
31 |
-
controller:"Controller",
|
32 |
-
kioskmode:"Kiosk mode",
|
33 |
-
playeveryframe:"Play every frame",
|
34 |
-
targetcache:"Target cache",
|
35 |
-
correction:"No correction",
|
36 |
-
enablejavascript:"Enable JavaScript",
|
37 |
-
starttime:"Start time",
|
38 |
-
endtime:"End time",
|
39 |
-
href:"Href",
|
40 |
-
qtsrcchokespeed:"Choke speed",
|
41 |
-
target:"Target",
|
42 |
-
volume:"Volume",
|
43 |
-
autostart:"Auto start",
|
44 |
-
enabled:"Enabled",
|
45 |
-
fullscreen:"Fullscreen",
|
46 |
-
invokeurls:"Invoke URLs",
|
47 |
-
mute:"Mute",
|
48 |
-
stretchtofit:"Stretch to fit",
|
49 |
-
windowlessvideo:"Windowless video",
|
50 |
-
balance:"Balance",
|
51 |
-
baseurl:"Base URL",
|
52 |
-
captioningid:"Captioning id",
|
53 |
-
currentmarker:"Current marker",
|
54 |
-
currentposition:"Current position",
|
55 |
-
defaultframe:"Default frame",
|
56 |
-
playcount:"Play count",
|
57 |
-
rate:"Rate",
|
58 |
-
uimode:"UI Mode",
|
59 |
-
flash_options:"Flash options",
|
60 |
-
qt_options:"Quicktime options",
|
61 |
-
wmp_options:"Windows media player options",
|
62 |
-
rmp_options:"Real media player options",
|
63 |
-
shockwave_options:"Shockwave options",
|
64 |
-
autogotourl:"Auto goto URL",
|
65 |
-
center:"Center",
|
66 |
-
imagestatus:"Image status",
|
67 |
-
maintainaspect:"Maintain aspect",
|
68 |
-
nojava:"No java",
|
69 |
-
prefetch:"Prefetch",
|
70 |
-
shuffle:"Shuffle",
|
71 |
-
console:"Console",
|
72 |
-
numloop:"Num loops",
|
73 |
-
controls:"Controls",
|
74 |
-
scriptcallbacks:"Script callbacks",
|
75 |
-
swstretchstyle:"Stretch style",
|
76 |
-
swstretchhalign:"Stretch H-Align",
|
77 |
-
swstretchvalign:"Stretch V-Align",
|
78 |
-
sound:"Sound",
|
79 |
-
progress:"Progress",
|
80 |
-
qtsrc:"QT Src",
|
81 |
-
qt_stream_warn:"Streamed rtsp resources should be added to the QT Src field under the advanced tab.\nYou should also add a non streamed version to the Src field..",
|
82 |
-
align_top:"Top",
|
83 |
-
align_right:"Right",
|
84 |
-
align_bottom:"Bottom",
|
85 |
-
align_left:"Left",
|
86 |
-
align_center:"Center",
|
87 |
-
align_top_left:"Top left",
|
88 |
-
align_top_right:"Top right",
|
89 |
-
align_bottom_left:"Bottom left",
|
90 |
-
align_bottom_right:"Bottom right",
|
91 |
-
flv_options:"Flash video options",
|
92 |
-
flv_scalemode:"Scale mode",
|
93 |
-
flv_buffer:"Buffer",
|
94 |
-
flv_startimage:"Start image",
|
95 |
-
flv_starttime:"Start time",
|
96 |
-
flv_defaultvolume:"Default volumne",
|
97 |
-
flv_hiddengui:"Hidden GUI",
|
98 |
-
flv_autostart:"Auto start",
|
99 |
-
flv_loop:"Loop",
|
100 |
-
flv_showscalemodes:"Show scale modes",
|
101 |
-
flv_smoothvideo:"Smooth video",
|
102 |
-
flv_jscallback:"JS Callback"
|
103 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mce/media/langs/es_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('es.media_dlg',{list:"Lista",file:"Archivo/URL",advanced:"Avanzado",general:"General",title:"Insertar/editar medio embebido",align_top_left:"Arriba Izda.",align_center:"Centrado",align_left:"Izquierda",align_bottom:"Debajo",align_right:"Derecha",align_top:"Arriba",qt_stream_warn:"Los recursos rtsp de Streaming deber\u00edan a\u00f1adirse en el campo QT Src de la pesta\u00f1a avanzada.\\nAdem\u00e1s deber\u00eda a\u00f1adir una versi\u00f3n no Streaming en el campo Src.",qtsrc:"QT Src",progress:"Progreso",sound:"Sonido",swstretchvalign:"Alin. V. Estiramiento",swstretchhalign:"Alin. H. Estiramiento",swstretchstyle:"Estilo estiramiento",scriptcallbacks:"Script callbacks",align_top_right:"Arriba Dcha.",uimode:"Modo UI",rate:"Ratio",playcount:"Cuantas reproducciones",defaultframe:"Frame predet.",currentposition:"Posici\u00f3n actual",currentmarker:"Marcador actual",captioningid:"Captioning id",baseurl:"URL Base",balance:"Balance",windowlessvideo:"Video sin ventana",stretchtofit:"Estirar para ajustar",mute:"Silencio",invokeurls:"Invocar URLs",fullscreen:"Pantalla Completa",enabled:"Habilitado",autostart:"Comienzo Autom\u00e1tico",volume:"Volumen",target:"Target",qtsrcchokespeed:"Vel. de choque",href:"Href",endtime:"Fin",starttime:"Inicio",enablejavascript:"Habilitar JavaScript",correction:"Sin correci\u00f3n",targetcache:"Target cache",playeveryframe:"Reproducir todo los frames",kioskmode:"Kiosk mode",controller:"Controller",menu:"Mostrar Men\u00fa",loop:"Repetitivo",play:"Comienzo Autom\u00e1tico",hspace:"H-Space",vspace:"V-Space",class_name:"Clase",name:"Nombre",id:"Id",type:"Tipo",size:"Dimensiones",preview:"Vista Previa",constrain_proportions:"Bloquear relaci\u00f3n de aspecto",controls:"Controles",numloop:"N\u00fam. repeticiones",console:"Consola",cache:"Cach\u00e9",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flashvars",base:"Base",bgcolor:"Fondo",wmode:"WMode",salign:"SAlign",align:"Alineaci\u00f3n",scale:"Scale",quality:"Calidad",shuffle:"Aleatorio",prefetch:"Preb\u00fasqueda",nojava:"No java",maintainaspect:"Mantener aspecto",imagestatus:"Estado de imagen",center:"Centrado",autogotourl:"Ir a URL autom\u00e1t.",shockwave_options:"Opciones Shockwave",rmp_options:"Opciones Real media player",wmp_options:"Opciones Windows media player",qt_options:"Opciones Quicktime",flash_options:"Opciones Flash",hidden:"Hidden",align_bottom_left:"Debajo Izda.",align_bottom_right:"Debajo Dcha.",flv_options:"Opciones Video Flash",flv_scalemode:"Modo escalado",flv_buffer:"Buffer",flv_startimage:"Imagen inicio",flv_starttime:"Tiempo inicio",flv_defaultvolume:"Volumen predet.",flv_hiddengui:"Ocultar GUI",flv_autostart:"Inicio auto.",flv_loop:"Repetitivo",flv_showscalemodes:"Mostrar modos escala",flv_smoothvideo:"Video suave",flv_jscallback:"JS Callback"});
|
|
mce/media/langs/fr_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('fr.media_dlg',{list:"Liste",file:"Fichier / URL",advanced:"Avanc\u00e9",general:"G\u00e9n\u00e9ral",title:"Ins\u00e9rer / \u00e9diter un fichier m\u00e9dia",align_top_left:"En haut \u00e0 gauche",align_center:"Centr\u00e9",align_left:"Gauche",align_bottom:"Bas",align_right:"Droite",align_top:"Haut",qt_stream_warn:"Les ressources rtsp en streaming doivent \u00eatre ajout\u00e9es au champ \u00ab Source QT \u00bb dans l\'onglet avanc\u00e9.\\nVous devriez aussi ajouter une version n\'\u00e9tant pas en streaming au champ \u00ab source QT \u00bb.",qtsrc:"Source QT",progress:"Progression",sound:"Son",swstretchvalign:"Stretch vertical",swstretchhalign:"Stretch horizontal",swstretchstyle:"Stretch style",scriptcallbacks:"Callback de script",align_top_right:"En haut \u00e0 droite",uimode:"Mode UI",rate:"Taux",playcount:"Compteur",defaultframe:"Image par d\u00e9faut",currentposition:"Position actuelle",currentmarker:"Marqueur actuel",captioningid:"ID sous-titrage",baseurl:"Adresse de base",balance:"Balance",windowlessvideo:"Vid\u00e9o sans fen\u00eatre",stretchtofit:"\u00c9tendre pour adapter la taille",mute:"Muet",invokeurls:"Invoquer URLs",fullscreen:"Plein \u00e9cran",enabled:"Activ\u00e9",autostart:"Lire automatiquement",volume:"Volume",target:"Cible",qtsrcchokespeed:"D\u00e9bit maximum",href:"Href",endtime:"Fin",starttime:"D\u00e9but",enablejavascript:"Activer le JavaScript",correction:"Pas de correction",targetcache:"Cache cible",playeveryframe:"Jouer toutes les images",kioskmode:"Mode kiosque",controller:"Contr\u00f4leur",menu:"Afficher le menu",loop:"Lire en boucle",play:"Lecture automatique",hspace:"Espacement horizontal",vspace:"Espacement vertical",class_name:"Classe",name:"Nom",id:"Id",type:"Type",size:"Dimensions",preview:"Pr\u00e9visualisation",constrain_proportions:"Conserver les proportions",controls:"Contr\u00f4les",numloop:"Nombre de tours",console:"Console",cache:"Cache",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Variables flash",base:"Base",bgcolor:"Fond",wmode:"WMode",salign:"SAlign",align:"Alignement",scale:"\u00c9chelle",quality:"Qualit\u00e9",shuffle:"Al\u00e9atoire",prefetch:"Pr\u00e9chargement",nojava:"Pas java",maintainaspect:"Maintenir l\'aspect",imagestatus:"Statut de l\'image",center:"Centrer",autogotourl:"Aller automatiquement \u00e0 l\'URL",shockwave_options:"Options Shockwave",rmp_options:"Options Real media player",wmp_options:"Windows media player options",qt_options:"Options Quicktime",flash_options:"Options Flash",hidden:"Cach\u00e9",align_bottom_left:"En bas \u00e0 gauche",align_bottom_right:"En bas \u00e0 droite",flv_options:"Options de la vid\u00e9o Flash",flv_scalemode:"\u00c9chelle",flv_buffer:"Tampon",flv_startimage:"Image de d\u00e9marrage",flv_starttime:"Temps au d\u00e9but",flv_defaultvolume:"Volume par d\u00e9faut",flv_hiddengui:"Interface utilisateur cach\u00e9e",flv_autostart:"D\u00e9marrage automatique",flv_loop:"En boucle",flv_showscalemodes:"Montrer les diff\u00e9rentes \u00e9chelles",flv_smoothvideo:"Vid\u00e9o adoucie",flv_jscallback:"Callback JavaScript",html5_video_options:"Options Vid\u00e9o HTML 5",altsource1:"Source alternative 1",altsource2:"Source alternative 2",preload:"Pr\u00e9chargement",poster:"Poster",source:"Source"});
|
|
mce/media/langs/it_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('it.media_dlg',{list:"Lista",file:"File/URL",advanced:"Avanzate",general:"Generale",title:"Inserisci/modifica file multimediale",align_top_left:"Alto a sinistra",align_center:"Centro",align_left:"Sinistra",align_bottom:"Basso",align_right:"Destra",align_top:"Alto",qt_stream_warn:"Le risorse rstp \'streamed\' devono essere aggiunte al campo Sorgente QT nella tabella Avanzate.\\nSi dovrebbe inserire anche una versione non \'streamed\' al campo Sorgente..",qtsrc:"Sorgente QT",progress:"Avanzamento",sound:"Suono",swstretchvalign:"Stretch V-Align",swstretchhalign:"Stretch H-Align",swstretchstyle:"Stretch style",scriptcallbacks:"Script callbacks",align_top_right:"Alto a destra",uimode:"Modalit\u00e0 Interfaccia Utente",rate:"Qualit\u00e0",playcount:"Conteggio esecuzione",defaultframe:"frame predefinito",currentposition:"Posizione corrente",currentmarker:"Indicatore corrente",captioningid:"Didascalia dell\'Id",baseurl:"URL base",balance:"Bilanciamento",windowlessvideo:"Video senza finestra",stretchtofit:"Adatta dimensioni",mute:"Muto",invokeurls:"Invoca URLs",fullscreen:"Tutto schermo",enabled:"Abilitato",autostart:"Avvio automatico",volume:"Volume",target:"Target",qtsrcchokespeed:"Velocit\u00e0 cursore",href:"Href",endtime:"Ora fine",starttime:"Ora inizio",enablejavascript:"Abilita JavaScript",correction:"Nessuna correzione",targetcache:"Cache del target",playeveryframe:"Esegui ogni frame",kioskmode:"Modalit\u00e0 Kiosk",controller:"Controller",menu:"Mostra menu",loop:"Riproduzione ciclica",play:"Esecuzione automatica",hspace:"H-Space",vspace:"V-Space",class_name:"Classe",name:"Nome",id:"Id",type:"Tipo",size:"Dimensioni",preview:"Anteprima",constrain_proportions:"Mantieni proporzioni",controls:"Controlli",numloop:"Numero cicli",console:"Console",cache:"Cache",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flashvars",base:"Base",bgcolor:"Sfondo",wmode:"WMode",salign:"SAlign",align:"Allineamento",scale:"Scala",quality:"Qualit\u00e0",shuffle:"Shuffle",prefetch:"Precaricamento",nojava:"No java",maintainaspect:"Mantieni aspetto",imagestatus:"Stato immagine",center:"Centra",autogotourl:"Vai a URL automatico",shockwave_options:"Opzioni Shockwave",rmp_options:"Opzioni Real media player",wmp_options:"Opzioni Windows media player",qt_options:"Opzioni Quicktime",flash_options:"Opzioni Flash",hidden:"Nascosto",align_bottom_left:"Basso a sinistra",align_bottom_right:"Basso a destra",flv_options:"Opzioni video Flash",flv_scalemode:"Scale mode",flv_buffer:"Buffer",flv_startimage:"Immagine avvio",flv_starttime:"Tempo avvio",flv_defaultvolume:"Volume predefinito",flv_hiddengui:"GUI nascosta",flv_autostart:"Avvio automatico",flv_loop:"Riproduzione ciclica",flv_showscalemodes:"Mostra scale modes",flv_smoothvideo:"Smooth video",flv_jscallback:"JS Callback"});
|
|
mce/media/langs/ja_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('ja.media_dlg',{list:"\u4e00\u89a7\u304b\u3089\u9078\u3076",file:"\u30d5\u30a1\u30a4\u30eb/URL",advanced:"\u4e0a\u7d1a\u8005\u5411\u3051",general:"\u4e00\u822c",title:"\u57cb\u3081\u8fbc\u307f\u30e1\u30c7\u30a3\u30a2\u306e\u633f\u5165/\u7de8\u96c6",align_top_left:"\u5de6\u4e0a",align_center:"\u4e2d\u592e",align_left:"\u5de6",align_bottom:"\u4e0b",align_right:"\u53f3",align_top:"\u4e0a",qt_stream_warn:"rtsp\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ea\u30bd\u30fc\u30b9\u3092\u300c\u4e0a\u7d1a\u8005\u5411\u3051\u300d\u30bf\u30d6\u306e\u300cQT Src\u300d\u6b04\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\\n\u307e\u305f\u3001\u300cSrc\u300d\u6b04\u306b\u306f\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3067\u306f\u306a\u3044\u30d0\u30fc\u30b8\u30e7\u30fc\u30f3\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",qtsrc:"QT Src",progress:"Progress",sound:"\u30b5\u30a6\u30f3\u30c9",swstretchvalign:"\u5782\u76f4\u4f4d\u7f6e",swstretchhalign:"\u6c34\u5e73\u4f4d\u7f6e",swstretchstyle:"\u4f38\u7e2e",scriptcallbacks:"\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u30a4\u30d9\u30f3\u30c8",align_top_right:"\u53f3\u4e0a",uimode:"UI\u8868\u793a\u30e2\u30fc\u30c9",rate:"\u518d\u751f\u30ec\u30fc\u30c8",playcount:"\u518d\u751f\u56de\u6570",defaultframe:"\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30ec\u30fc\u30e0",currentposition:"\u518d\u751f\u4f4d\u7f6e\uff08\u79d2\u5358\u4f4d\uff09",currentmarker:"\u30de\u30fc\u30ab\u30fc\u756a\u53f7",captioningid:"\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u8868\u793a\u8981\u7d20ID",baseurl:"Base URL",balance:"\u30b9\u30c6\u30ec\u30aa\u306e\u30d0\u30e9\u30f3\u30b9",windowlessvideo:"windowless\u30e2\u30fc\u30c9",stretchtofit:"\u81ea\u52d5\u30b5\u30a4\u30ba\u5909\u66f4",mute:"\u30df\u30e5\u30fc\u30c8",invokeurls:"URL\u3092\u958b\u304f",fullscreen:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",enabled:"\u6709\u52b9\u306b\u3059\u308b",autostart:"\u81ea\u52d5\u518d\u751f",volume:"\u97f3\u91cf",target:"\u30bf\u30fc\u30b2\u30c3\u30c8",qtsrcchokespeed:"\u518d\u751f\u30c7\u30fc\u30bf\u30ec\u30fc\u30c8",href:"\u30ea\u30f3\u30af\u5148URL",endtime:"\u7d42\u4e86\u30d5\u30ec\u30fc\u30e0",starttime:"\u958b\u59cb\u30d5\u30ec\u30fc\u30e0",enablejavascript:"JavaScript\u3092\u6709\u52b9\u306b\u3059\u308b",correction:"No correction",targetcache:"\u30bf\u30fc\u30b2\u30c3\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5",playeveryframe:"\u5168\u30d5\u30ec\u30fc\u30e0\u518d\u751f",kioskmode:"Kiosk\u30e2\u30fc\u30c9",controller:"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u8868\u793a",menu:"\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a",loop:"\u7e70\u308a\u8fd4\u3057\u518d\u751f",play:"\u81ea\u52d5\u518d\u751f",hspace:"\u5de6\u53f3\u4f59\u767d",vspace:"\u4e0a\u4e0b\u4f59\u767d",class_name:"class\u5c5e\u6027",name:"\u540d\u524d",id:"ID\u5c5e\u6027",type:"\u30bf\u30a4\u30d7",size:"\u30b5\u30a4\u30ba",preview:"\u30d7\u30ec\u30d3\u30e5\u30fc",constrain_proportions:"\u7e26\u6a2a\u6bd4\u3092\u4fdd\u5b58",controls:"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u8868\u793a",numloop:"\u7e70\u308a\u8fd4\u3057\u56de\u6570",console:"\u30b3\u30f3\u30bd\u30fc\u30eb",cache:"\u30ad\u30e3\u30c3\u30b7\u30e5",autohref:"\u81ea\u52d5\u8aad\u8fbc",liveconnect:"SWLiveConnect",flashvars:"Flashvars",base:"Base",bgcolor:"\u80cc\u666f\u8272",wmode:"WMode",salign:"SAlign",align:"\u914d\u7f6e",scale:"\u4f38\u7e2e",quality:"\u54c1\u8cea",shuffle:"\u30b7\u30e3\u30c3\u30d5\u30eb",prefetch:"\u30d7\u30ea\u30d5\u30a7\u30c3\u30c1",nojava:"Java\u3092\u7981\u6b62",maintainaspect:"\u7e26\u6a2a\u6bd4\u4fdd\u5b58",imagestatus:"\u30b9\u30c6\u30fc\u30bf\u30b9\u8868\u793a",center:"\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0",autogotourl:"autogotourl",shockwave_options:"Shockwave\u30aa\u30d7\u30b7\u30e7\u30f3",rmp_options:"Real media player\u30aa\u30d7\u30b7\u30e7\u30f3",wmp_options:"Windows media player\u30aa\u30d7\u30b7\u30e7\u30f3",qt_options:"Quicktime\u30aa\u30d7\u30b7\u30e7\u30f3",flash_options:"Flash\u30aa\u30d7\u30b7\u30e7\u30f3",hidden:"\u975e\u8868\u793a",align_bottom_left:"\u5de6\u4e0b",align_bottom_right:"\u53f3\u4e0b",flv_options:"Flash video\u30aa\u30d7\u30b7\u30e7\u30f3",flv_scalemode:"\u4f38\u7e2e\u30e2\u30fc\u30c9",flv_buffer:"\u30d0\u30c3\u30d5\u30a1\u79d2\u6570",flv_startimage:"\u521d\u671f\u753b\u50cfURL",flv_starttime:"\u958b\u59cb\u30d5\u30ec\u30fc\u30e0",flv_defaultvolume:"\u97f3\u91cf",flv_hiddengui:"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u975e\u8868\u793a",flv_autostart:"\u81ea\u52d5\u518d\u751f",flv_loop:"\u7e70\u308a\u8fd4\u3057\u518d\u751f",flv_showscalemodes:"\u4f38\u7e2e\u5207\u66ff\u30dc\u30bf\u30f3\u8868\u793a",flv_smoothvideo:"\u30b9\u30e0\u30fc\u30b8\u30f3\u30b0",flv_jscallback:"JS\u30b3\u30fc\u30eb\u30d0\u30c3\u30af"});
|
|
mce/media/langs/langs.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$lang_file = dirname(__FILE__) . '/' . $mce_locale . '_dlg.js';
|
3 |
-
|
4 |
-
if ( is_file($lang_file) && is_readable($lang_file) )
|
5 |
-
$strings = tdav_get_file($lang_file);
|
6 |
-
else {
|
7 |
-
$strings = tdav_get_file(dirname(__FILE__) . '/en_dlg.js');
|
8 |
-
$strings = preg_replace( '/([\'"])en\./', '$1'.$mce_locale.'.', $strings, 1 );
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mce/media/langs/pt_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('pt.media_dlg',{list:"Lista",file:"Arquivo/URL",advanced:"Avan\u00e7ado",general:"Geral",title:"Inserir/Editar m\u00eddia incorporada",align_top_left:"Topo esquerda",align_center:"Centro",align_left:"Esquerda",align_bottom:"Abaixo",align_right:"Direita",align_top:"Topo",qt_stream_warn:"Fluxos de recursos rtsp devem ser acrescentados ao campo QT Src no Modo Avan\u00e7ado.\\Numa vers\u00e3o sem fluxo tamb\u00e9m deve ser acrescentada ao campo Src.",qtsrc:"QT Src",progress:"Progresso",sound:"Som",swstretchvalign:"Stretch V-Align",swstretchhalign:"Stretch H-Align",swstretchstyle:"Stretch style",scriptcallbacks:"callbacks de script",align_top_right:"Topo direita",uimode:"UI Mode",rate:"Rate",playcount:"Play count",defaultframe:"Frame padr\u00e3o",currentposition:"Posi\u00e7\u00e3o atual",currentmarker:"Marcador atual",captioningid:"Id de legenda",baseurl:"Base URL",balance:"Stereo",windowlessvideo:"V\u00eddeo sem janela",stretchtofit:"Estender",mute:"Mudo",invokeurls:"Invocar URLs",fullscreen:"Tela inteira",enabled:"Ativado",autostart:"Execu\u00e7\u00e3o autom\u00e1tica",volume:"Volume",target:"Alvo",qtsrcchokespeed:"Choke speed",href:"Href",endtime:"Hora do fim",starttime:"Hora de in\u00edcio",enablejavascript:"Disponibilizar javaScript",correction:"Sem correc\u00e7\u00f5es",targetcache:"Cache alvo",playeveryframe:"Executar todas as frames",kioskmode:"Modo Quiosque",controller:"Controlador",menu:"Mostrar menu",loop:"Repeti\u00e7\u00e3o autom\u00e1tica",play:"Execu\u00e7\u00e3o autom\u00e1tica",hspace:"Espa\u00e7o horizontal",vspace:"Espa\u00e7o vertical",class_name:"Classe",name:"Nome",id:"Id",type:"Tipo",size:"Dimens\u00f5es",preview:"Previs\u00e3o",constrain_proportions:"Manter propor\u00e7\u00f5es",controls:"Controles",numloop:"Num loops",console:"Console",cache:"Cache",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flashvars",base:"Base",bgcolor:"Fundo",wmode:"WMode",salign:"SAlign",align:"Alinhamento",scale:"Escala",quality:"Qualidade",shuffle:"Shuffle",prefetch:"Prefetch",nojava:"no java",maintainaspect:"Manter aspecto",imagestatus:"Status da imagem",center:"Centro",autogotourl:"Auto goto URL",shockwave_options:"Op\u00e7\u00f5es Shockwave",rmp_options:"Op\u00e7\u00f5es Real Media Player",wmp_options:"Op\u00e7\u00f5es Windows Media Player",qt_options:"Op\u00e7\u00f5es Quicktime",flash_options:"Op\u00e7\u00f5es Flash",hidden:"Oculto",align_bottom_left:"Abaixo esquerda",align_bottom_right:"Abaixo direita",flv_options:"Op\u00e7\u00f5es de Flash video",flv_scalemode:"Modo escala",flv_buffer:"Buffer",flv_startimage:"Imagem inicial",flv_starttime:"Hora inicial",flv_defaultvolume:"Volume padr\u00e3o",flv_hiddengui:"GUI oculta",flv_autostart:"Execu\u00e7\u00e3o Autom\u00e1tica",flv_loop:"Loop",flv_showscalemodes:"Mostrar modos escala",flv_smoothvideo:"Smooth video",flv_jscallback:"JS callback"});
|
|
mce/media/langs/ru_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('ru.media_dlg',{list:"\u0421\u043f\u0438\u0441\u043e\u043a",file:"\u0410\u0434\u0440\u0435\u0441",advanced:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e",general:"\u041e\u0431\u0449\u0435\u0435",title:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043b\u0438\u043f\u0430",align_top_left:"\u041f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e",align_center:"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443",align_left:"\u041f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",align_bottom:"\u041f\u043e \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e",align_right:"\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",align_top:"\u041f\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e",qt_stream_warn:"\u041f\u043e\u0442\u043e\u043a\u043e\u0432\u044b\u0435 rtsp \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 \u043f\u043e\u043b\u0435 QT Src.",qtsrc:"QT Src",progress:"\u041f\u0440\u043e\u0433\u0440\u0435\u0441\u0441",sound:"\u0417\u0432\u0443\u043a",swstretchvalign:"\u0412\u0435\u0440. \u0432\u044b\u0440-\u0435 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f",swstretchhalign:"\u0413\u043e\u0440. \u0432\u044b\u0440-\u0435 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f",swstretchstyle:"\u0421\u0442\u0438\u043b\u044c \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u0435",scriptcallbacks:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430",align_top_right:"\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e",uimode:"\u0420\u0435\u0436\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430",rate:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433",playcount:"\u0429\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0439",defaultframe:"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u0430\u0434\u0440",currentposition:"\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f",currentmarker:"\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u0430\u0440\u043a\u0435\u0440",captioningid:"\u0418\u043c\u044f \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432",baseurl:"\u0411\u0430\u0437\u043e\u0440\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441",balance:"\u0411\u0430\u043b\u0430\u043d\u0441",windowlessvideo:"\u041e\u043a\u043e\u043d\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e",stretchtofit:"\u041f\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043a\u043d\u0430",mute:"\u0411\u0435\u0437 \u0437\u0432\u0443\u043a\u0430",invokeurls:"\u0412\u044b\u0437\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441",fullscreen:"\u041d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",enabled:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u043e",autostart:"\u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a",volume:"\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",target:"\u0426\u0435\u043b\u044c",qtsrcchokespeed:"Choke speed",href:"\u0421\u0441\u044b\u043b\u043a\u0430",endtime:"\u0412\u0440\u0435\u043c\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f",starttime:"\u0412\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u043b\u0430",enablejavascript:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c JavaScript",correction:"\u0411\u0435\u0437 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u043a\u0438",targetcache:"\u041a\u044d\u0448 \u0446\u0435\u043b\u0438",playeveryframe:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0430\u0434\u0440",kioskmode:"\u0420\u0435\u0436\u0438\u043c \u043a\u0438\u043e\u0441\u043a",controller:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",menu:"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u043d\u044e",loop:"\u041f\u043e\u0432\u0442\u043e\u0440",play:"\u0410\u0432\u0442\u0437\u0430\u043f\u0443\u0441\u043a",hspace:"\u0413\u043e\u0440. \u043e\u0442\u0441\u0442\u0443\u043f",vspace:"\u0412\u0435\u0440\u0442. \u043e\u0442\u0441\u0442\u0443\u043f",class_name:"\u041a\u043b\u0430\u0441\u0441",name:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435",id:"\u0418\u043c\u044f",type:"\u0422\u0438\u043f",size:"\u0420\u0430\u0437\u043c\u0435\u0440\u044b",preview:"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440",constrain_proportions:"\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438",controls:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",numloop:"\u041f\u043e\u0432\u0442\u043e\u0440\u044b",console:"\u041a\u043e\u043d\u0441\u043e\u043b\u044c",cache:"\u041a\u044d\u0448",autohref:"\u0410\u0432\u0442\u043e-\u0441\u0441\u044b\u043b\u043a\u0430",liveconnect:"SWLiveConnect",flashvars:"Flash \u043a\u043e\u043c\u0430\u043d\u0434\u044b",base:"Base",bgcolor:"\u0424\u043e\u043d",wmode:"\u041e\u043a\u043d\u043e",salign:"\u0412\u044b\u0440-\u0435",align:"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435",scale:"\u041e\u0431\u043b\u0430\u0441\u0442\u044c",quality:"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",shuffle:"\u0412 \u0440\u0430\u0437\u0431\u0440\u043e\u0441",prefetch:"\u0423\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0449\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430",nojava:"\u0411\u0435\u0437 Java",maintainaspect:"\u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440",imagestatus:"\u0421\u0442\u0430\u0442\u0443\u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f",center:"\u0426\u0435\u043d\u0442\u0440",autogotourl:"\u0410\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441",shockwave_options:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b Shockwave",rmp_options:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b Real Media",wmp_options:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b Windows Media",qt_options:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b Quicktime",flash_options:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b Flash",hidden:"\u0421\u043a\u0440\u044b\u0442\u044b\u0439",align_bottom_left:"\u041f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e",align_bottom_right:"\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e",flv_options:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Flash",flv_scalemode:"\u041c\u0430\u0441\u0448\u0442\u0430\u0431",flv_buffer:"\u0411\u0443\u0444\u0435\u0440",flv_startimage:"\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",flv_starttime:"\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f",flv_defaultvolume:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0432\u0443\u043a",flv_hiddengui:"\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441",flv_autostart:"\u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a",flv_loop:"\u041f\u043e\u0432\u0442\u043e\u0440",flv_showscalemodes:"\u0420\u0435\u0436\u0438\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430",flv_smoothvideo:"\u041f\u043b\u0430\u0432\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e",flv_jscallback:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 JS",html5_video_options:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b HTML5 Video",altsource1:"\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a 1",altsource2:"\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a 2",preload:"\u041f\u0440\u0435\u0434\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430",poster:"\u041f\u043e\u0441\u0442\u0435\u0440",source:"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a"});
|
|
mce/media/langs/zh_dlg.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.addI18n('zh.media_dlg',{list:"\u5217\u8868",file:"\u5a92\u4f53URL",advanced:"\u9ad8\u7ea7",general:"\u4e00\u822c",title:"\u63d2\u5165/\u7f16\u8f91\u5a92\u4f53",align_top_left:"\u5de6\u4e0a",align_center:"\u7f6e\u4e2d",align_left:"\u9760\u5de6",align_bottom:"\u9760\u4e0b",align_right:"\u9760\u53f3",align_top:"\u9760\u4e0a",qt_stream_warn:"\u4e32\u6d41\u5a92\u4f53rtsp\u8d44\u6e90\u5e94\u8be5\u52a0\u5230\u300c\u9ad8\u7ea7\u300d\u4e2dQT src\u3002 \\n\u540c\u65f6\u589e\u52a0\u975e\u4e32\u6d41\u5a92\u4f53\u8d44\u6e90\u5230src\u3002",qtsrc:"QT Src",progress:"\u8fdb\u5ea6",sound:"\u58f0\u97f3",swstretchvalign:"\u7f29\u653e\u81f3\u5782\u76f4\u5bf9\u9f50",swstretchhalign:"\u7f29\u653e\u81f3\u6c34\u5e73\u5bf9\u9f50",swstretchstyle:"\u7f29\u653e\u6837\u5f0f",scriptcallbacks:"Script \u553f\u53eb",align_top_right:"\u53f3\u4e0a",uimode:"\u9762\u677f\u6a21\u5f0f",rate:"\u6bd4\u7387",playcount:"\u64ad\u653e\u6b21\u6570",defaultframe:"\u9884\u8bbe\u753b\u9762",currentposition:"\u76ee\u524d\u4f4d\u7f6e",currentmarker:"\u76ee\u524d\u6807\u8bb0",captioningid:"\u5b57\u5e55\u7f16\u53f7",baseurl:"\u57fa\u5e95 URL",balance:"\u5e73\u8861",windowlessvideo:"\u65e0\u89c6\u7a97\u64ad\u653e",stretchtofit:"\u7f29\u653e\u81f3\u6700\u4f73\u5927\u5c0f",mute:"\u9759\u97f3",invokeurls:"\u5f15\u7528\u7684 URLs",fullscreen:"\u5168\u8424\u5e55",enabled:"\u53ef\u7528",autostart:"\u81ea\u52a8\u64ad\u653e",volume:"\u97f3\u91cf",target:"\u76ee\u6807",qtsrcchokespeed:"\u963b\u585e\u901f\u5ea6",href:"\u8d85\u8fde\u7ed3",endtime:"\u7ed3\u675f\u65f6\u95f4",starttime:"\u5f00\u59cb\u65f6\u95f4",enablejavascript:"\u542f\u7528 JavaScript",correction:"\u4fee\u6b63",targetcache:"\u76ee\u6807\u7f13\u5b58",playeveryframe:"\u9010\u683c\u64ad\u653e",kioskmode:"Kiosk\u6a21\u5f0f",controller:"\u63a7\u5236\u53f0",menu:"\u663e\u793a\u9009\u9879",loop:"\u5faa\u73af",play:"\u81ea\u52a8\u64ad\u653e",hspace:"\u6c34\u5e73\u95f4\u8ddd",vspace:"\u5782\u76f4\u95f4\u8ddd",class_name:"\u7c7b\u522b",name:"\u540d\u79f0",id:"ID",type:"\u7c7b\u578b",size:"\u5927\u5c0f",preview:"\u9884\u89c8",constrain_proportions:"\u7ea6\u675f\u6bd4\u4f8b",controls:"\u63a7\u5236",numloop:"\u5faa\u73af\u6b21\u6570",console:"\u63a7\u5236\u53f0",cache:"\u7f13\u5b58",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flash \u53d8\u91cf",base:"\u57fa\u5e95",bgcolor:"\u80cc\u666f\u8272",wmode:"\u89c6\u7a97\u6a21\u5f0f",salign:"SAlign",align:"\u5bf9\u9f50",scale:"\u7f29\u653e",quality:"\u54c1\u8d28",shuffle:"\u968f\u673a",prefetch:"\u9884\u8f7d",nojava:"No Java",maintainaspect:"\u9501\u5b9a\u6bd4\u4f8b",imagestatus:"\u56fe\u7247\u72b6\u6001",center:"\u7f6e\u4e2d",autogotourl:"\u81ea\u52a8\u8f6c\u81f3 URL",shockwave_options:"Shockwave \u9009\u9879",rmp_options:"Real Media Player \u9009\u9879",wmp_options:"Windows Media Player \u9009\u9879",qt_options:"Quick Time \u9009\u9879",flash_options:"Flash \u9009\u9879",hidden:"\u9690\u85cf",align_bottom_left:"\u5de6\u4e0b",align_bottom_right:"\u53f3\u4e0b",flv_options:"Flash\u5f71\u7247\u9009\u9879",flv_scalemode:"\u7f29\u653e\u6a21\u5f0f",flv_buffer:"\u7f13\u885d\u533a",flv_startimage:"\u5f00\u59cb\u753b\u9762",flv_starttime:"\u5f00\u59cb\u65f6\u95f4",flv_defaultvolume:"\u9884\u8bbe\u97f3\u91cf",flv_hiddengui:"\u9690\u85cf GUI",flv_autostart:"\u81ea\u52a8\u64ad\u653e",flv_loop:"\u5faa\u73af",flv_showscalemodes:"\u663e\u793a\u7f29\u653e\u6a21\u5f0f",flv_smoothvideo:"\u5e73\u6ed1\u64ad\u653e",flv_jscallback:"Script \u553f\u53eb"});
|
|
mce/media/media.htm
DELETED
@@ -1,817 +0,0 @@
|
|
1 |
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2 |
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
-
<head>
|
4 |
-
<title>{#media_dlg.title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=3392"></script>
|
6 |
-
<script type="text/javascript" src="js/media.js?ver=3392"></script>
|
7 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=3392"></script>
|
8 |
-
<script type="text/javascript" src="../../utils/validate.js?ver=3392"></script>
|
9 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=3392"></script>
|
10 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=3392"></script>
|
11 |
-
<link href="css/media.css?ver=3392" rel="stylesheet" type="text/css" />
|
12 |
-
</head>
|
13 |
-
<body style="display: none">
|
14 |
-
<form onsubmit="insertMedia();return false;" action="#">
|
15 |
-
<div class="tabs">
|
16 |
-
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');generatePreview();" onmousedown="return false;">{#media_dlg.general}</a></span></li>
|
18 |
-
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#media_dlg.advanced}</a></span></li>
|
19 |
-
</ul>
|
20 |
-
</div>
|
21 |
-
|
22 |
-
<div class="panel_wrapper">
|
23 |
-
<div id="general_panel" class="panel current">
|
24 |
-
<fieldset>
|
25 |
-
<legend>{#media_dlg.general}</legend>
|
26 |
-
|
27 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
28 |
-
<tr>
|
29 |
-
<td><label for="media_type">{#media_dlg.type}</label></td>
|
30 |
-
<td>
|
31 |
-
<select id="media_type" name="media_type" onchange="changedType(this.value);generatePreview();">
|
32 |
-
<option value="flash">Flash</option>
|
33 |
-
<!-- <option value="flv">Flash video (FLV)</option> -->
|
34 |
-
<option value="qt">Quicktime</option>
|
35 |
-
<option value="shockwave">Shockwave</option>
|
36 |
-
<option value="wmp">Windows Media</option>
|
37 |
-
<option value="rmp">Real Media</option>
|
38 |
-
</select>
|
39 |
-
</td>
|
40 |
-
</tr>
|
41 |
-
<tr>
|
42 |
-
<td><label for="src">{#media_dlg.file}</label></td>
|
43 |
-
<td>
|
44 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
45 |
-
<tr>
|
46 |
-
<td><input id="src" name="src" type="text" value="" class="mceFocus" onchange="switchType(this.value);generatePreview();" /></td>
|
47 |
-
<td id="filebrowsercontainer"> </td>
|
48 |
-
</tr>
|
49 |
-
</table>
|
50 |
-
</td>
|
51 |
-
</tr>
|
52 |
-
<tr id="linklistrow">
|
53 |
-
<td><label for="linklist">{#media_dlg.list}</label></td>
|
54 |
-
<td id="linklistcontainer"><select id="linklist"><option value=""></option></select></td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td><label for="width">{#media_dlg.size}</label></td>
|
58 |
-
<td>
|
59 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
60 |
-
<tr>
|
61 |
-
<td><input type="text" id="width" name="width" value="" class="size" onchange="generatePreview('width');" /> x <input type="text" id="height" name="height" value="" class="size" onchange="generatePreview('height');" /></td>
|
62 |
-
<td> <input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
|
63 |
-
<td><label id="constrainlabel" for="constrain">{#media_dlg.constrain_proportions}</label></td>
|
64 |
-
</tr>
|
65 |
-
</table>
|
66 |
-
</td>
|
67 |
-
</tr>
|
68 |
-
</table>
|
69 |
-
</fieldset>
|
70 |
-
|
71 |
-
<fieldset>
|
72 |
-
<legend>{#media_dlg.preview}</legend>
|
73 |
-
<div id="prev"></div>
|
74 |
-
</fieldset>
|
75 |
-
</div>
|
76 |
-
|
77 |
-
<div id="advanced_panel" class="panel">
|
78 |
-
<fieldset>
|
79 |
-
<legend>{#media_dlg.advanced}</legend>
|
80 |
-
|
81 |
-
<table border="0" cellpadding="4" cellspacing="0" width="100%">
|
82 |
-
<tr>
|
83 |
-
<td><label for="id">{#media_dlg.id}</label></td>
|
84 |
-
<td><input type="text" id="id" name="id" onchange="generatePreview();" /></td>
|
85 |
-
<td><label for="name">{#media_dlg.name}</label></td>
|
86 |
-
<td><input type="text" id="name" name="name" onchange="generatePreview();" /></td>
|
87 |
-
</tr>
|
88 |
-
|
89 |
-
<tr>
|
90 |
-
<td><label for="align">{#media_dlg.align}</label></td>
|
91 |
-
<td>
|
92 |
-
<select id="align" name="align" onchange="generatePreview();">
|
93 |
-
<option value="">{#not_set}</option>
|
94 |
-
<option value="top">{#media_dlg.align_top}</option>
|
95 |
-
<option value="right">{#media_dlg.align_right}</option>
|
96 |
-
<option value="bottom">{#media_dlg.align_bottom}</option>
|
97 |
-
<option value="left">{#media_dlg.align_left}</option>
|
98 |
-
</select>
|
99 |
-
</td>
|
100 |
-
|
101 |
-
<td><label for="bgcolor">{#media_dlg.bgcolor}</label></td>
|
102 |
-
<td>
|
103 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
104 |
-
<tr>
|
105 |
-
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');generatePreview();" /></td>
|
106 |
-
<td id="bgcolor_pickcontainer"> </td>
|
107 |
-
</tr>
|
108 |
-
</table>
|
109 |
-
</td>
|
110 |
-
</tr>
|
111 |
-
|
112 |
-
<tr>
|
113 |
-
<td><label for="vspace">{#media_dlg.vspace}</label></td>
|
114 |
-
<td><input type="text" id="vspace" name="vspace" class="number" onchange="generatePreview();" /></td>
|
115 |
-
<td><label for="hspace">{#media_dlg.hspace}</label></td>
|
116 |
-
<td><input type="text" id="hspace" name="hspace" class="number" onchange="generatePreview();" /></td>
|
117 |
-
</tr>
|
118 |
-
</table>
|
119 |
-
</fieldset>
|
120 |
-
|
121 |
-
<fieldset id="flash_options">
|
122 |
-
<legend>{#media_dlg.flash_options}</legend>
|
123 |
-
|
124 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
125 |
-
<tr>
|
126 |
-
<td><label for="flash_quality">{#media_dlg.quality}</label></td>
|
127 |
-
<td>
|
128 |
-
<select id="flash_quality" name="flash_quality" onchange="generatePreview();">
|
129 |
-
<option value="">{#not_set}</option>
|
130 |
-
<option value="high">high</option>
|
131 |
-
<option value="low">low</option>
|
132 |
-
<option value="autolow">autolow</option>
|
133 |
-
<option value="autohigh">autohigh</option>
|
134 |
-
<option value="best">best</option>
|
135 |
-
</select>
|
136 |
-
</td>
|
137 |
-
|
138 |
-
<td><label for="flash_scale">{#media_dlg.scale}</label></td>
|
139 |
-
<td>
|
140 |
-
<select id="flash_scale" name="flash_scale" onchange="generatePreview();">
|
141 |
-
<option value="">{#not_set}</option>
|
142 |
-
<option value="showall">showall</option>
|
143 |
-
<option value="noborder">noborder</option>
|
144 |
-
<option value="exactfit">exactfit</option>
|
145 |
-
<option value="noscale">noscale</option>
|
146 |
-
</select>
|
147 |
-
</td>
|
148 |
-
</tr>
|
149 |
-
|
150 |
-
<tr>
|
151 |
-
<td><label for="flash_wmode">{#media_dlg.wmode}</label></td>
|
152 |
-
<td>
|
153 |
-
<select id="flash_wmode" name="flash_wmode" onchange="generatePreview();">
|
154 |
-
<option value="">{#not_set}</option>
|
155 |
-
<option value="window">window</option>
|
156 |
-
<option value="opaque">opaque</option>
|
157 |
-
<option value="transparent">transparent</option>
|
158 |
-
</select>
|
159 |
-
</td>
|
160 |
-
|
161 |
-
<td><label for="flash_salign">{#media_dlg.salign}</label></td>
|
162 |
-
<td>
|
163 |
-
<select id="flash_salign" name="flash_salign" onchange="generatePreview();">
|
164 |
-
<option value="">{#not_set}</option>
|
165 |
-
<option value="l">{#media_dlg.align_left}</option>
|
166 |
-
<option value="t">{#media_dlg.align_top}</option>
|
167 |
-
<option value="r">{#media_dlg.align_right}</option>
|
168 |
-
<option value="b">{#media_dlg.align_bottom}</option>
|
169 |
-
<option value="tl">{#media_dlg.align_top_left}</option>
|
170 |
-
<option value="tr">{#media_dlg.align_top_right}</option>
|
171 |
-
<option value="bl">{#media_dlg.align_bottom_left}</option>
|
172 |
-
<option value="br">{#media_dlg.align_bottom_right}</option>
|
173 |
-
</select>
|
174 |
-
</td>
|
175 |
-
</tr>
|
176 |
-
|
177 |
-
<tr>
|
178 |
-
<td colspan="2">
|
179 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
180 |
-
<tr>
|
181 |
-
<td><input type="checkbox" class="checkbox" id="flash_play" name="flash_play" checked="checked" onchange="generatePreview();" /></td>
|
182 |
-
<td><label for="flash_play">{#media_dlg.play}</label></td>
|
183 |
-
</tr>
|
184 |
-
</table>
|
185 |
-
</td>
|
186 |
-
|
187 |
-
<td colspan="2">
|
188 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
189 |
-
<tr>
|
190 |
-
<td><input type="checkbox" class="checkbox" id="flash_loop" name="flash_loop" checked="checked" onchange="generatePreview();" /></td>
|
191 |
-
<td><label for="flash_loop">{#media_dlg.loop}</label></td>
|
192 |
-
</tr>
|
193 |
-
</table>
|
194 |
-
</td>
|
195 |
-
</tr>
|
196 |
-
|
197 |
-
<tr>
|
198 |
-
<td colspan="2">
|
199 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
200 |
-
<tr>
|
201 |
-
<td><input type="checkbox" class="checkbox" id="flash_menu" name="flash_menu" checked="checked" onchange="generatePreview();" /></td>
|
202 |
-
<td><label for="flash_menu">{#media_dlg.menu}</label></td>
|
203 |
-
</tr>
|
204 |
-
</table>
|
205 |
-
</td>
|
206 |
-
|
207 |
-
<td colspan="2">
|
208 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
209 |
-
<tr>
|
210 |
-
<td><input type="checkbox" class="checkbox" id="flash_swliveconnect" name="flash_swliveconnect" onchange="generatePreview();" /></td>
|
211 |
-
<td><label for="flash_swliveconnect">{#media_dlg.liveconnect}</label></td>
|
212 |
-
</tr>
|
213 |
-
</table>
|
214 |
-
</td>
|
215 |
-
</tr>
|
216 |
-
</table>
|
217 |
-
|
218 |
-
<table>
|
219 |
-
<tr>
|
220 |
-
<td><label for="flash_base">{#media_dlg.base}</label></td>
|
221 |
-
<td><input type="text" id="flash_base" name="flash_base" onchange="generatePreview();" /></td>
|
222 |
-
</tr>
|
223 |
-
|
224 |
-
<tr>
|
225 |
-
<td><label for="flash_flashvars">{#media_dlg.flashvars}</label></td>
|
226 |
-
<td><input type="text" id="flash_flashvars" name="flash_flashvars" onchange="generatePreview();" /></td>
|
227 |
-
</tr>
|
228 |
-
</table>
|
229 |
-
</fieldset>
|
230 |
-
|
231 |
-
<fieldset id="flv_options">
|
232 |
-
<legend>{#media_dlg.flv_options}</legend>
|
233 |
-
|
234 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
235 |
-
<tr>
|
236 |
-
<td><label for="flv_scalemode">{#media_dlg.flv_scalemode}</label></td>
|
237 |
-
<td>
|
238 |
-
<select id="flv_scalemode" name="flv_scalemode" onchange="generatePreview();">
|
239 |
-
<option value="">{#not_set}</option>
|
240 |
-
<option value="none">none</option>
|
241 |
-
<option value="double">double</option>
|
242 |
-
<option value="full">full</option>
|
243 |
-
</select>
|
244 |
-
</td>
|
245 |
-
|
246 |
-
<td><label for="flv_buffer">{#media_dlg.flv_buffer}</label></td>
|
247 |
-
<td><input type="text" id="flv_buffer" name="flv_buffer" onchange="generatePreview();" /></td>
|
248 |
-
</tr>
|
249 |
-
|
250 |
-
<tr>
|
251 |
-
<td><label for="flv_startimage">{#media_dlg.flv_startimage}</label></td>
|
252 |
-
<td><input type="text" id="flv_startimage" name="flv_startimage" onchange="generatePreview();" /></td>
|
253 |
-
|
254 |
-
<td><label for="flv_starttime">{#media_dlg.flv_starttime}</label></td>
|
255 |
-
<td><input type="text" id="flv_starttime" name="flv_starttime" onchange="generatePreview();" /></td>
|
256 |
-
</tr>
|
257 |
-
|
258 |
-
<tr>
|
259 |
-
<td><label for="flv_defaultvolume">{#media_dlg.flv_defaultvolume}</label></td>
|
260 |
-
<td><input type="text" id="flv_defaultvolume" name="flv_defaultvolume" onchange="generatePreview();" /></td>
|
261 |
-
|
262 |
-
|
263 |
-
</tr>
|
264 |
-
|
265 |
-
<tr>
|
266 |
-
<td colspan="2">
|
267 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
268 |
-
<tr>
|
269 |
-
<td><input type="checkbox" class="checkbox" id="flv_hiddengui" name="flv_hiddengui" checked="checked" onchange="generatePreview();" /></td>
|
270 |
-
<td><label for="flv_hiddengui">{#media_dlg.flv_hiddengui}</label></td>
|
271 |
-
</tr>
|
272 |
-
</table>
|
273 |
-
</td>
|
274 |
-
|
275 |
-
<td colspan="2">
|
276 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
277 |
-
<tr>
|
278 |
-
<td><input type="checkbox" class="checkbox" id="flv_autostart" name="flv_autostart" checked="checked" onchange="generatePreview();" /></td>
|
279 |
-
<td><label for="flv_autostart">{#media_dlg.flv_autostart}</label></td>
|
280 |
-
</tr>
|
281 |
-
</table>
|
282 |
-
</td>
|
283 |
-
</tr>
|
284 |
-
|
285 |
-
<tr>
|
286 |
-
<td colspan="2">
|
287 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
288 |
-
<tr>
|
289 |
-
<td><input type="checkbox" class="checkbox" id="flv_loop" name="flv_loop" checked="checked" onchange="generatePreview();" /></td>
|
290 |
-
<td><label for="flv_loop">{#media_dlg.flv_loop}</label></td>
|
291 |
-
</tr>
|
292 |
-
</table>
|
293 |
-
</td>
|
294 |
-
|
295 |
-
<td colspan="2">
|
296 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
297 |
-
<tr>
|
298 |
-
<td><input type="checkbox" class="checkbox" id="flv_showscalemodes" name="flv_showscalemodes" onchange="generatePreview();" /></td>
|
299 |
-
<td><label for="flv_showscalemodes">{#media_dlg.flv_showscalemodes}</label></td>
|
300 |
-
</tr>
|
301 |
-
</table>
|
302 |
-
</td>
|
303 |
-
</tr>
|
304 |
-
|
305 |
-
<tr>
|
306 |
-
<td colspan="2">
|
307 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
308 |
-
<tr>
|
309 |
-
<td><input type="checkbox" class="checkbox" id="flv_smoothvideo" name="flash_flv_flv_smoothvideosmoothvideo" checked="checked" onchange="generatePreview();" /></td>
|
310 |
-
<td><label for="flv_smoothvideo">{#media_dlg.flv_smoothvideo}</label></td>
|
311 |
-
</tr>
|
312 |
-
</table>
|
313 |
-
</td>
|
314 |
-
|
315 |
-
<td colspan="2">
|
316 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
317 |
-
<tr>
|
318 |
-
<td><input type="checkbox" class="checkbox" id="flv_jscallback" name="flv_jscallback" onchange="generatePreview();" /></td>
|
319 |
-
<td><label for="flv_jscallback">{#media_dlg.flv_jscallback}</label></td>
|
320 |
-
</tr>
|
321 |
-
</table>
|
322 |
-
</td>
|
323 |
-
</tr>
|
324 |
-
</table>
|
325 |
-
</fieldset>
|
326 |
-
|
327 |
-
<fieldset id="qt_options">
|
328 |
-
<legend>{#media_dlg.qt_options}</legend>
|
329 |
-
|
330 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
331 |
-
<tr>
|
332 |
-
<td colspan="2">
|
333 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
334 |
-
<tr>
|
335 |
-
<td><input type="checkbox" class="checkbox" id="qt_loop" name="qt_loop" onchange="generatePreview();" /></td>
|
336 |
-
<td><label for="qt_loop">{#media_dlg.loop}</label></td>
|
337 |
-
</tr>
|
338 |
-
</table>
|
339 |
-
</td>
|
340 |
-
|
341 |
-
<td colspan="2">
|
342 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
343 |
-
<tr>
|
344 |
-
<td><input type="checkbox" class="checkbox" id="qt_autoplay" name="qt_autoplay" checked="checked" onchange="generatePreview();" /></td>
|
345 |
-
<td><label for="qt_autoplay">{#media_dlg.play}</label></td>
|
346 |
-
</tr>
|
347 |
-
</table>
|
348 |
-
</td>
|
349 |
-
</tr>
|
350 |
-
|
351 |
-
<tr>
|
352 |
-
<td colspan="2">
|
353 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
354 |
-
<tr>
|
355 |
-
<td><input type="checkbox" class="checkbox" id="qt_cache" name="qt_cache" onchange="generatePreview();" /></td>
|
356 |
-
<td><label for="qt_cache">{#media_dlg.cache}</label></td>
|
357 |
-
</tr>
|
358 |
-
</table>
|
359 |
-
</td>
|
360 |
-
|
361 |
-
<td colspan="2">
|
362 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
363 |
-
<tr>
|
364 |
-
<td><input type="checkbox" class="checkbox" id="qt_controller" name="qt_controller" checked="checked" onchange="generatePreview();" /></td>
|
365 |
-
<td><label for="qt_controller">{#media_dlg.controller}</label></td>
|
366 |
-
</tr>
|
367 |
-
</table>
|
368 |
-
</td>
|
369 |
-
</tr>
|
370 |
-
|
371 |
-
<tr>
|
372 |
-
<td colspan="2">
|
373 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
374 |
-
<tr>
|
375 |
-
<td><input type="checkbox" class="checkbox" id="qt_correction" name="qt_correction" onchange="generatePreview();" /></td>
|
376 |
-
<td><label for="qt_correction">{#media_dlg.correction}</label></td>
|
377 |
-
</tr>
|
378 |
-
</table>
|
379 |
-
</td>
|
380 |
-
|
381 |
-
<td colspan="2">
|
382 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
383 |
-
<tr>
|
384 |
-
<td><input type="checkbox" class="checkbox" id="qt_enablejavascript" name="qt_enablejavascript" onchange="generatePreview();" /></td>
|
385 |
-
<td><label for="qt_enablejavascript">{#media_dlg.enablejavascript}</label></td>
|
386 |
-
</tr>
|
387 |
-
</table>
|
388 |
-
</td>
|
389 |
-
</tr>
|
390 |
-
|
391 |
-
<tr>
|
392 |
-
<td colspan="2">
|
393 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
394 |
-
<tr>
|
395 |
-
<td><input type="checkbox" class="checkbox" id="qt_kioskmode" name="qt_kioskmode" onchange="generatePreview();" /></td>
|
396 |
-
<td><label for="qt_kioskmode">{#media_dlg.kioskmode}</label></td>
|
397 |
-
</tr>
|
398 |
-
</table>
|
399 |
-
</td>
|
400 |
-
|
401 |
-
<td colspan="2">
|
402 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
403 |
-
<tr>
|
404 |
-
<td><input type="checkbox" class="checkbox" id="qt_autohref" name="qt_autohref" onchange="generatePreview();" /></td>
|
405 |
-
<td><label for="qt_autohref">{#media_dlg.autohref}</label></td>
|
406 |
-
</tr>
|
407 |
-
</table>
|
408 |
-
</td>
|
409 |
-
</tr>
|
410 |
-
|
411 |
-
<tr>
|
412 |
-
<td colspan="2">
|
413 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
414 |
-
<tr>
|
415 |
-
<td><input type="checkbox" class="checkbox" id="qt_playeveryframe" name="qt_playeveryframe" onchange="generatePreview();" /></td>
|
416 |
-
<td><label for="qt_playeveryframe">{#media_dlg.playeveryframe}</label></td>
|
417 |
-
</tr>
|
418 |
-
</table>
|
419 |
-
</td>
|
420 |
-
|
421 |
-
<td colspan="2">
|
422 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
423 |
-
<tr>
|
424 |
-
<td><input type="checkbox" class="checkbox" id="qt_targetcache" name="qt_targetcache" onchange="generatePreview();" /></td>
|
425 |
-
<td><label for="qt_targetcache">{#media_dlg.targetcache}</label></td>
|
426 |
-
</tr>
|
427 |
-
</table>
|
428 |
-
</td>
|
429 |
-
</tr>
|
430 |
-
|
431 |
-
<tr>
|
432 |
-
<td><label for="qt_scale">{#media_dlg.scale}</label></td>
|
433 |
-
<td><select id="qt_scale" name="qt_scale" class="mceEditableSelect" onchange="generatePreview();">
|
434 |
-
<option value="">{#not_set}</option>
|
435 |
-
<option value="tofit">tofit</option>
|
436 |
-
<option value="aspect">aspect</option>
|
437 |
-
</select>
|
438 |
-
</td>
|
439 |
-
|
440 |
-
<td colspan="2"> </td>
|
441 |
-
</tr>
|
442 |
-
|
443 |
-
<tr>
|
444 |
-
<td><label for="qt_starttime">{#media_dlg.starttime}</label></td>
|
445 |
-
<td><input type="text" id="qt_starttime" name="qt_starttime" onchange="generatePreview();" /></td>
|
446 |
-
|
447 |
-
<td><label for="qt_endtime">{#media_dlg.endtime}</label></td>
|
448 |
-
<td><input type="text" id="qt_endtime" name="qt_endtime" onchange="generatePreview();" /></td>
|
449 |
-
</tr>
|
450 |
-
|
451 |
-
<tr>
|
452 |
-
<td><label for="qt_target">{#media_dlg.target}</label></td>
|
453 |
-
<td><input type="text" id="qt_target" name="qt_target" onchange="generatePreview();" /></td>
|
454 |
-
|
455 |
-
<td><label for="qt_href">{#media_dlg.href}</label></td>
|
456 |
-
<td><input type="text" id="qt_href" name="qt_href" onchange="generatePreview();" /></td>
|
457 |
-
</tr>
|
458 |
-
|
459 |
-
<tr>
|
460 |
-
<td><label for="qt_qtsrcchokespeed">{#media_dlg.qtsrcchokespeed}</label></td>
|
461 |
-
<td><input type="text" id="qt_qtsrcchokespeed" name="qt_qtsrcchokespeed" onchange="generatePreview();" /></td>
|
462 |
-
|
463 |
-
<td><label for="qt_volume">{#media_dlg.volume}</label></td>
|
464 |
-
<td><input type="text" id="qt_volume" name="qt_volume" onchange="generatePreview();" /></td>
|
465 |
-
</tr>
|
466 |
-
|
467 |
-
<tr>
|
468 |
-
<td><label for="qt_qtsrc">{#media_dlg.qtsrc}</label></td>
|
469 |
-
<td colspan="4">
|
470 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
471 |
-
<tr>
|
472 |
-
<td><input type="text" id="qt_qtsrc" name="qt_qtsrc" onchange="generatePreview();" /></td>
|
473 |
-
<td id="qtsrcfilebrowsercontainer"> </td>
|
474 |
-
</tr>
|
475 |
-
</table>
|
476 |
-
</td>
|
477 |
-
</tr>
|
478 |
-
</table>
|
479 |
-
</fieldset>
|
480 |
-
|
481 |
-
<fieldset id="wmp_options">
|
482 |
-
<legend>{#media_dlg.wmp_options}</legend>
|
483 |
-
|
484 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
485 |
-
<tr>
|
486 |
-
<td colspan="2">
|
487 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
488 |
-
<tr>
|
489 |
-
<td><input type="checkbox" class="checkbox" id="wmp_autostart" name="wmp_autostart" checked="checked" onchange="generatePreview();" /></td>
|
490 |
-
<td><label for="wmp_autostart">{#media_dlg.autostart}</label></td>
|
491 |
-
</tr>
|
492 |
-
</table>
|
493 |
-
</td>
|
494 |
-
|
495 |
-
<td colspan="2">
|
496 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
497 |
-
<tr>
|
498 |
-
<td><input type="checkbox" class="checkbox" id="wmp_enabled" name="wmp_enabled" onchange="generatePreview();" /></td>
|
499 |
-
<td><label for="wmp_enabled">{#media_dlg.enabled}</label></td>
|
500 |
-
</tr>
|
501 |
-
</table>
|
502 |
-
</td>
|
503 |
-
</tr>
|
504 |
-
|
505 |
-
<tr>
|
506 |
-
<td colspan="2">
|
507 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
508 |
-
<tr>
|
509 |
-
<td><input type="checkbox" class="checkbox" id="wmp_enablecontextmenu" name="wmp_enablecontextmenu" checked="checked" onchange="generatePreview();" /></td>
|
510 |
-
<td><label for="wmp_enablecontextmenu">{#media_dlg.menu}</label></td>
|
511 |
-
</tr>
|
512 |
-
</table>
|
513 |
-
</td>
|
514 |
-
|
515 |
-
<td colspan="2">
|
516 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
517 |
-
<tr>
|
518 |
-
<td><input type="checkbox" class="checkbox" id="wmp_fullscreen" name="wmp_fullscreen" onchange="generatePreview();" /></td>
|
519 |
-
<td><label for="wmp_fullscreen">{#media_dlg.fullscreen}</label></td>
|
520 |
-
</tr>
|
521 |
-
</table>
|
522 |
-
</td>
|
523 |
-
</tr>
|
524 |
-
|
525 |
-
<tr>
|
526 |
-
<td colspan="2">
|
527 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
528 |
-
<tr>
|
529 |
-
<td><input type="checkbox" class="checkbox" id="wmp_invokeurls" name="wmp_invokeurls" checked="checked" onchange="generatePreview();" /></td>
|
530 |
-
<td><label for="wmp_invokeurls">{#media_dlg.invokeurls}</label></td>
|
531 |
-
</tr>
|
532 |
-
</table>
|
533 |
-
</td>
|
534 |
-
|
535 |
-
<td colspan="2">
|
536 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
537 |
-
<tr>
|
538 |
-
<td><input type="checkbox" class="checkbox" id="wmp_mute" name="wmp_mute" onchange="generatePreview();" /></td>
|
539 |
-
<td><label for="wmp_mute">{#media_dlg.mute}</label></td>
|
540 |
-
</tr>
|
541 |
-
</table>
|
542 |
-
</td>
|
543 |
-
</tr>
|
544 |
-
|
545 |
-
<tr>
|
546 |
-
<td colspan="2">
|
547 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
548 |
-
<tr>
|
549 |
-
<td><input type="checkbox" class="checkbox" id="wmp_stretchtofit" name="wmp_stretchtofit" onchange="generatePreview();" /></td>
|
550 |
-
<td><label for="wmp_stretchtofit">{#media_dlg.stretchtofit}</label></td>
|
551 |
-
</tr>
|
552 |
-
</table>
|
553 |
-
</td>
|
554 |
-
|
555 |
-
<td colspan="2">
|
556 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
557 |
-
<tr>
|
558 |
-
<td><input type="checkbox" class="checkbox" id="wmp_windowlessvideo" name="wmp_windowlessvideo" onchange="generatePreview();" /></td>
|
559 |
-
<td><label for="wmp_windowlessvideo">{#media_dlg.windowlessvideo}</label></td>
|
560 |
-
</tr>
|
561 |
-
</table>
|
562 |
-
</td>
|
563 |
-
</tr>
|
564 |
-
|
565 |
-
<tr>
|
566 |
-
<td><label for="wmp_balance">{#media_dlg.balance}</label></td>
|
567 |
-
<td><input type="text" id="wmp_balance" name="wmp_balance" onchange="generatePreview();" /></td>
|
568 |
-
|
569 |
-
<td><label for="wmp_baseurl">{#media_dlg.baseurl}</label></td>
|
570 |
-
<td><input type="text" id="wmp_baseurl" name="wmp_baseurl" onchange="generatePreview();" /></td>
|
571 |
-
</tr>
|
572 |
-
|
573 |
-
<tr>
|
574 |
-
<td><label for="wmp_captioningid">{#media_dlg.captioningid}</label></td>
|
575 |
-
<td><input type="text" id="wmp_captioningid" name="wmp_captioningid" onchange="generatePreview();" /></td>
|
576 |
-
|
577 |
-
<td><label for="wmp_currentmarker">{#media_dlg.currentmarker}</label></td>
|
578 |
-
<td><input type="text" id="wmp_currentmarker" name="wmp_currentmarker" onchange="generatePreview();" /></td>
|
579 |
-
</tr>
|
580 |
-
|
581 |
-
<tr>
|
582 |
-
<td><label for="wmp_currentposition">{#media_dlg.currentposition}</label></td>
|
583 |
-
<td><input type="text" id="wmp_currentposition" name="wmp_currentposition" onchange="generatePreview();" /></td>
|
584 |
-
|
585 |
-
<td><label for="wmp_defaultframe">{#media_dlg.defaultframe}</label></td>
|
586 |
-
<td><input type="text" id="wmp_defaultframe" name="wmp_defaultframe" onchange="generatePreview();" /></td>
|
587 |
-
</tr>
|
588 |
-
|
589 |
-
<tr>
|
590 |
-
<td><label for="wmp_playcount">{#media_dlg.playcount}</label></td>
|
591 |
-
<td><input type="text" id="wmp_playcount" name="wmp_playcount" onchange="generatePreview();" /></td>
|
592 |
-
|
593 |
-
<td><label for="wmp_rate">{#media_dlg.rate}</label></td>
|
594 |
-
<td><input type="text" id="wmp_rate" name="wmp_rate" onchange="generatePreview();" /></td>
|
595 |
-
</tr>
|
596 |
-
|
597 |
-
<tr>
|
598 |
-
<td><label for="wmp_uimode">{#media_dlg.uimode}</label></td>
|
599 |
-
<td><input type="text" id="wmp_uimode" name="wmp_uimode" onchange="generatePreview();" /></td>
|
600 |
-
|
601 |
-
<td><label for="wmp_volume">{#media_dlg.volume}</label></td>
|
602 |
-
<td><input type="text" id="wmp_volume" name="wmp_volume" onchange="generatePreview();" /></td>
|
603 |
-
</tr>
|
604 |
-
|
605 |
-
</table>
|
606 |
-
</fieldset>
|
607 |
-
|
608 |
-
<fieldset id="rmp_options">
|
609 |
-
<legend>{#media_dlg.rmp_options}</legend>
|
610 |
-
|
611 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
612 |
-
<tr>
|
613 |
-
<td colspan="2">
|
614 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
615 |
-
<tr>
|
616 |
-
<td><input type="checkbox" class="checkbox" id="rmp_autostart" name="rmp_autostart" onchange="generatePreview();" /></td>
|
617 |
-
<td><label for="rmp_autostart">{#media_dlg.autostart}</label></td>
|
618 |
-
</tr>
|
619 |
-
</table>
|
620 |
-
</td>
|
621 |
-
|
622 |
-
<td colspan="2">
|
623 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
624 |
-
<tr>
|
625 |
-
<td><input type="checkbox" class="checkbox" id="rmp_loop" name="rmp_loop" onchange="generatePreview();" /></td>
|
626 |
-
<td><label for="rmp_loop">{#media_dlg.loop}</label></td>
|
627 |
-
</tr>
|
628 |
-
</table>
|
629 |
-
</td>
|
630 |
-
</tr>
|
631 |
-
|
632 |
-
<tr>
|
633 |
-
<td colspan="2">
|
634 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
635 |
-
<tr>
|
636 |
-
<td><input type="checkbox" class="checkbox" id="rmp_autogotourl" name="rmp_autogotourl" checked="checked" onchange="generatePreview();" /></td>
|
637 |
-
<td><label for="rmp_autogotourl">{#media_dlg.autogotourl}</label></td>
|
638 |
-
</tr>
|
639 |
-
</table>
|
640 |
-
</td>
|
641 |
-
|
642 |
-
<td colspan="2">
|
643 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
644 |
-
<tr>
|
645 |
-
<td><input type="checkbox" class="checkbox" id="rmp_center" name="rmp_center" onchange="generatePreview();" /></td>
|
646 |
-
<td><label for="rmp_center">{#media_dlg.center}</label></td>
|
647 |
-
</tr>
|
648 |
-
</table>
|
649 |
-
</td>
|
650 |
-
</tr>
|
651 |
-
|
652 |
-
<tr>
|
653 |
-
<td colspan="2">
|
654 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
655 |
-
<tr>
|
656 |
-
<td><input type="checkbox" class="checkbox" id="rmp_imagestatus" name="rmp_imagestatus" checked="checked" onchange="generatePreview();" /></td>
|
657 |
-
<td><label for="rmp_imagestatus">{#media_dlg.imagestatus}</label></td>
|
658 |
-
</tr>
|
659 |
-
</table>
|
660 |
-
</td>
|
661 |
-
|
662 |
-
<td colspan="2">
|
663 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
664 |
-
<tr>
|
665 |
-
<td><input type="checkbox" class="checkbox" id="rmp_maintainaspect" name="rmp_maintainaspect" onchange="generatePreview();" /></td>
|
666 |
-
<td><label for="rmp_maintainaspect">{#media_dlg.maintainaspect}</label></td>
|
667 |
-
</tr>
|
668 |
-
</table>
|
669 |
-
</td>
|
670 |
-
</tr>
|
671 |
-
|
672 |
-
<tr>
|
673 |
-
<td colspan="2">
|
674 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
675 |
-
<tr>
|
676 |
-
<td><input type="checkbox" class="checkbox" id="rmp_nojava" name="rmp_nojava" onchange="generatePreview();" /></td>
|
677 |
-
<td><label for="rmp_nojava">{#media_dlg.nojava}</label></td>
|
678 |
-
</tr>
|
679 |
-
</table>
|
680 |
-
</td>
|
681 |
-
|
682 |
-
<td colspan="2">
|
683 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
684 |
-
<tr>
|
685 |
-
<td><input type="checkbox" class="checkbox" id="rmp_prefetch" name="rmp_prefetch" onchange="generatePreview();" /></td>
|
686 |
-
<td><label for="rmp_prefetch">{#media_dlg.prefetch}</label></td>
|
687 |
-
</tr>
|
688 |
-
</table>
|
689 |
-
</td>
|
690 |
-
</tr>
|
691 |
-
|
692 |
-
<tr>
|
693 |
-
<td colspan="2">
|
694 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
695 |
-
<tr>
|
696 |
-
<td><input type="checkbox" class="checkbox" id="rmp_shuffle" name="rmp_shuffle" onchange="generatePreview();" /></td>
|
697 |
-
<td><label for="rmp_shuffle">{#media_dlg.shuffle}</label></td>
|
698 |
-
</tr>
|
699 |
-
</table>
|
700 |
-
</td>
|
701 |
-
|
702 |
-
<td colspan="2">
|
703 |
-
|
704 |
-
</td>
|
705 |
-
</tr>
|
706 |
-
|
707 |
-
<tr>
|
708 |
-
<td><label for="rmp_console">{#media_dlg.console}</label></td>
|
709 |
-
<td><input type="text" id="rmp_console" name="rmp_console" onchange="generatePreview();" /></td>
|
710 |
-
|
711 |
-
<td><label for="rmp_controls">{#media_dlg.controls}</label></td>
|
712 |
-
<td><input type="text" id="rmp_controls" name="rmp_controls" onchange="generatePreview();" /></td>
|
713 |
-
</tr>
|
714 |
-
|
715 |
-
<tr>
|
716 |
-
<td><label for="rmp_numloop">{#media_dlg.numloop}</label></td>
|
717 |
-
<td><input type="text" id="rmp_numloop" name="rmp_numloop" onchange="generatePreview();" /></td>
|
718 |
-
|
719 |
-
<td><label for="rmp_scriptcallbacks">{#media_dlg.scriptcallbacks}</label></td>
|
720 |
-
<td><input type="text" id="rmp_scriptcallbacks" name="rmp_scriptcallbacks" onchange="generatePreview();" /></td>
|
721 |
-
</tr>
|
722 |
-
</table>
|
723 |
-
</fieldset>
|
724 |
-
|
725 |
-
<fieldset id="shockwave_options">
|
726 |
-
<legend>{#media_dlg.shockwave_options}</legend>
|
727 |
-
|
728 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
729 |
-
<tr>
|
730 |
-
<td><label for="shockwave_swstretchstyle">{#media_dlg.swstretchstyle}</label></td>
|
731 |
-
<td>
|
732 |
-
<select id="shockwave_swstretchstyle" name="shockwave_swstretchstyle" onchange="generatePreview();">
|
733 |
-
<option value="none">{#not_set}</option>
|
734 |
-
<option value="meet">Meet</option>
|
735 |
-
<option value="fill">Fill</option>
|
736 |
-
<option value="stage">Stage</option>
|
737 |
-
</select>
|
738 |
-
</td>
|
739 |
-
|
740 |
-
<td><label for="shockwave_swvolume">{#media_dlg.volume}</label></td>
|
741 |
-
<td><input type="text" id="shockwave_swvolume" name="shockwave_swvolume" onchange="generatePreview();" /></td>
|
742 |
-
</tr>
|
743 |
-
|
744 |
-
<tr>
|
745 |
-
<td><label for="shockwave_swstretchhalign">{#media_dlg.swstretchhalign}</label></td>
|
746 |
-
<td>
|
747 |
-
<select id="shockwave_swstretchhalign" name="shockwave_swstretchhalign" onchange="generatePreview();">
|
748 |
-
<option value="none">{#not_set}</option>
|
749 |
-
<option value="left">{#media_dlg.align_left}</option>
|
750 |
-
<option value="center">{#media_dlg.align_center}</option>
|
751 |
-
<option value="right">{#media_dlg.align_right}</option>
|
752 |
-
</select>
|
753 |
-
</td>
|
754 |
-
|
755 |
-
<td><label for="shockwave_swstretchvalign">{#media_dlg.swstretchvalign}</label></td>
|
756 |
-
<td>
|
757 |
-
<select id="shockwave_swstretchvalign" name="shockwave_swstretchvalign" onchange="generatePreview();">
|
758 |
-
<option value="none">{#not_set}</option>
|
759 |
-
<option value="meet">Meet</option>
|
760 |
-
<option value="fill">Fill</option>
|
761 |
-
<option value="stage">Stage</option>
|
762 |
-
</select>
|
763 |
-
</td>
|
764 |
-
</tr>
|
765 |
-
|
766 |
-
<tr>
|
767 |
-
<td colspan="2">
|
768 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
769 |
-
<tr>
|
770 |
-
<td><input type="checkbox" class="checkbox" id="shockwave_autostart" name="shockwave_autostart" onchange="generatePreview();" checked="checked" /></td>
|
771 |
-
<td><label for="shockwave_autostart">{#media_dlg.autostart}</label></td>
|
772 |
-
</tr>
|
773 |
-
</table>
|
774 |
-
</td>
|
775 |
-
|
776 |
-
<td colspan="2">
|
777 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
778 |
-
<tr>
|
779 |
-
<td><input type="checkbox" class="checkbox" id="shockwave_sound" name="shockwave_sound" onchange="generatePreview();" checked="checked" /></td>
|
780 |
-
<td><label for="shockwave_sound">{#media_dlg.sound}</label></td>
|
781 |
-
</tr>
|
782 |
-
</table>
|
783 |
-
</td>
|
784 |
-
</tr>
|
785 |
-
|
786 |
-
|
787 |
-
<tr>
|
788 |
-
<td colspan="2">
|
789 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
790 |
-
<tr>
|
791 |
-
<td><input type="checkbox" class="checkbox" id="shockwave_swliveconnect" name="shockwave_swliveconnect" onchange="generatePreview();" /></td>
|
792 |
-
<td><label for="shockwave_swliveconnect">{#media_dlg.liveconnect}</label></td>
|
793 |
-
</tr>
|
794 |
-
</table>
|
795 |
-
</td>
|
796 |
-
|
797 |
-
<td colspan="2">
|
798 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
799 |
-
<tr>
|
800 |
-
<td><input type="checkbox" class="checkbox" id="shockwave_progress" name="shockwave_progress" onchange="generatePreview();" checked="checked" /></td>
|
801 |
-
<td><label for="shockwave_progress">{#media_dlg.progress}</label></td>
|
802 |
-
</tr>
|
803 |
-
</table>
|
804 |
-
</td>
|
805 |
-
</tr>
|
806 |
-
</table>
|
807 |
-
</fieldset>
|
808 |
-
</div>
|
809 |
-
</div>
|
810 |
-
|
811 |
-
<div class="mceActionPanel">
|
812 |
-
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
813 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
814 |
-
</div>
|
815 |
-
</form>
|
816 |
-
</body>
|
817 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mce/nonbreaking/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'<span
|
1 |
+
(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp"> </span>':" ")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(tinymce.isIE&&f.keyCode==9){d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");tinymce.dom.Event.cancel(f)}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})();
|
mce/searchreplace/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:170+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})();
|
1 |
+
(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){window.focus();a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:170+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})();
|
mce/searchreplace/js/searchreplace.js
CHANGED
@@ -2,14 +2,18 @@ tinyMCEPopup.requireLangPack();
|
|
2 |
|
3 |
var SearchReplaceDialog = {
|
4 |
init : function(ed) {
|
5 |
-
var f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode");
|
6 |
|
7 |
-
|
8 |
|
9 |
f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string");
|
10 |
|
11 |
// Focus input field
|
12 |
f[m + '_panel_searchstring'].focus();
|
|
|
|
|
|
|
|
|
13 |
},
|
14 |
|
15 |
switchMode : function(m) {
|
@@ -51,16 +55,14 @@ var SearchReplaceDialog = {
|
|
51 |
|
52 |
function fix() {
|
53 |
// Correct Firefox graphics glitches
|
|
|
54 |
r = se.getRng().cloneRange();
|
55 |
ed.getDoc().execCommand('SelectAll', false, null);
|
56 |
se.setRng(r);
|
57 |
};
|
58 |
|
59 |
function replace() {
|
60 |
-
|
61 |
-
ed.selection.getRng().duplicate().pasteHTML(rs); // Needs to be duplicated due to selection bug in IE
|
62 |
-
else
|
63 |
-
ed.getDoc().execCommand('InsertHTML', false, rs);
|
64 |
};
|
65 |
|
66 |
// IE flags
|
@@ -74,6 +76,9 @@ var SearchReplaceDialog = {
|
|
74 |
ed.selection.collapse(true);
|
75 |
|
76 |
if (tinymce.isIE) {
|
|
|
|
|
|
|
77 |
while (r.findText(s, b ? -1 : 1, fl)) {
|
78 |
r.scrollIntoView();
|
79 |
r.select();
|
@@ -110,15 +115,14 @@ var SearchReplaceDialog = {
|
|
110 |
se.collapse(b);
|
111 |
r = se.getRng();
|
112 |
|
113 |
-
if (tinymce.isIE) {
|
114 |
-
r = ed.getDoc().selection.createRange();
|
115 |
-
}
|
116 |
-
|
117 |
// Whats the point
|
118 |
if (!s)
|
119 |
return;
|
120 |
|
121 |
if (tinymce.isIE) {
|
|
|
|
|
|
|
122 |
if (r.findText(s, b ? -1 : 1, fl)) {
|
123 |
r.scrollIntoView();
|
124 |
r.select();
|
2 |
|
3 |
var SearchReplaceDialog = {
|
4 |
init : function(ed) {
|
5 |
+
var t = this, f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode");
|
6 |
|
7 |
+
t.switchMode(m);
|
8 |
|
9 |
f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string");
|
10 |
|
11 |
// Focus input field
|
12 |
f[m + '_panel_searchstring'].focus();
|
13 |
+
|
14 |
+
mcTabs.onChange.add(function(tab_id, panel_id) {
|
15 |
+
t.switchMode(tab_id.substring(0, tab_id.indexOf('_')));
|
16 |
+
});
|
17 |
},
|
18 |
|
19 |
switchMode : function(m) {
|
55 |
|
56 |
function fix() {
|
57 |
// Correct Firefox graphics glitches
|
58 |
+
// TODO: Verify if this is actually needed any more, maybe it was for very old FF versions?
|
59 |
r = se.getRng().cloneRange();
|
60 |
ed.getDoc().execCommand('SelectAll', false, null);
|
61 |
se.setRng(r);
|
62 |
};
|
63 |
|
64 |
function replace() {
|
65 |
+
ed.selection.setContent(rs); // Needs to be duplicated due to selection bug in IE
|
|
|
|
|
|
|
66 |
};
|
67 |
|
68 |
// IE flags
|
76 |
ed.selection.collapse(true);
|
77 |
|
78 |
if (tinymce.isIE) {
|
79 |
+
ed.focus();
|
80 |
+
r = ed.getDoc().selection.createRange();
|
81 |
+
|
82 |
while (r.findText(s, b ? -1 : 1, fl)) {
|
83 |
r.scrollIntoView();
|
84 |
r.select();
|
115 |
se.collapse(b);
|
116 |
r = se.getRng();
|
117 |
|
|
|
|
|
|
|
|
|
118 |
// Whats the point
|
119 |
if (!s)
|
120 |
return;
|
121 |
|
122 |
if (tinymce.isIE) {
|
123 |
+
ed.focus();
|
124 |
+
r = ed.getDoc().selection.createRange();
|
125 |
+
|
126 |
if (r.findText(s, b ? -1 : 1, fl)) {
|
127 |
r.scrollIntoView();
|
128 |
r.select();
|
mce/searchreplace/searchreplace.htm
CHANGED
@@ -2,33 +2,34 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#searchreplace_dlg.replace_title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="js/searchreplace.js?ver=
|
9 |
-
<link rel="stylesheet" type="text/css" href="css/searchreplace.css?ver=
|
10 |
</head>
|
11 |
-
<body style="display:none;">
|
|
|
12 |
<form onsubmit="SearchReplaceDialog.searchNext('none');return false;" action="#">
|
13 |
<div class="tabs">
|
14 |
<ul>
|
15 |
-
<li id="search_tab"><span><a href="javascript:SearchReplaceDialog.switchMode('search');" onmousedown="return false;">{#searchreplace.search_desc}</a></span></li>
|
16 |
-
<li id="replace_tab"><span><a href="javascript:SearchReplaceDialog.switchMode('replace');" onmousedown="return false;">{#searchreplace_dlg.replace}</a></span></li>
|
17 |
</ul>
|
18 |
</div>
|
19 |
|
20 |
<div class="panel_wrapper">
|
21 |
<div id="search_panel" class="panel">
|
22 |
-
<table border="0" cellspacing="0" cellpadding="2">
|
23 |
<tr>
|
24 |
<td><label for="search_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
|
25 |
-
<td><input type="text" id="search_panel_searchstring" name="search_panel_searchstring" style="width: 200px" /></td>
|
26 |
</tr>
|
27 |
<tr>
|
28 |
<td colspan="2">
|
29 |
-
<table border="0" cellspacing="0" cellpadding="0" class="direction">
|
30 |
-
<tr>
|
31 |
-
<td><label>{#searchreplace_dlg.direction}</label></td>
|
32 |
<td><input id="search_panel_backwardsu" name="search_panel_backwards" class="radio" type="radio" /></td>
|
33 |
<td><label for="search_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
|
34 |
<td><input id="search_panel_backwardsd" name="search_panel_backwards" class="radio" type="radio" checked="checked" /></td>
|
@@ -39,7 +40,7 @@
|
|
39 |
</tr>
|
40 |
<tr>
|
41 |
<td colspan="2">
|
42 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
43 |
<tr>
|
44 |
<td><input id="search_panel_casesensitivebox" name="search_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
|
45 |
<td><label for="search_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
|
@@ -51,20 +52,20 @@
|
|
51 |
</div>
|
52 |
|
53 |
<div id="replace_panel" class="panel">
|
54 |
-
<table border="0" cellspacing="0" cellpadding="2">
|
55 |
<tr>
|
56 |
<td><label for="replace_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
|
57 |
-
<td><input type="text" id="replace_panel_searchstring" name="replace_panel_searchstring" style="width: 200px" /></td>
|
58 |
</tr>
|
59 |
<tr>
|
60 |
<td><label for="replace_panel_replacestring">{#searchreplace_dlg.replacewith}</label></td>
|
61 |
-
<td><input type="text" id="replace_panel_replacestring" name="replace_panel_replacestring" style="width: 200px" /></td>
|
62 |
</tr>
|
63 |
<tr>
|
64 |
<td colspan="2">
|
65 |
-
<table border="0" cellspacing="0" cellpadding="0" class="direction">
|
66 |
-
<tr>
|
67 |
-
<td><label>{#searchreplace_dlg.direction}</label></td>
|
68 |
<td><input id="replace_panel_backwardsu" name="replace_panel_backwards" class="radio" type="radio" /></td>
|
69 |
<td><label for="replace_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
|
70 |
<td><input id="replace_panel_backwardsd" name="replace_panel_backwards" class="radio" type="radio" checked="checked" /></td>
|
@@ -75,7 +76,7 @@
|
|
75 |
</tr>
|
76 |
<tr>
|
77 |
<td colspan="2">
|
78 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
79 |
<tr>
|
80 |
<td><input id="replace_panel_casesensitivebox" name="replace_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
|
81 |
<td><label for="replace_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
|
@@ -89,15 +90,10 @@
|
|
89 |
</div>
|
90 |
|
91 |
<div class="mceActionPanel">
|
92 |
-
<
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
</div>
|
97 |
-
|
98 |
-
<div style="float: right">
|
99 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
100 |
-
</div>
|
101 |
</div>
|
102 |
</form>
|
103 |
</body>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#searchreplace_dlg.replace_title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="js/searchreplace.js?ver=342"></script>
|
9 |
+
<link rel="stylesheet" type="text/css" href="css/searchreplace.css?ver=342" />
|
10 |
</head>
|
11 |
+
<body style="display:none;" role="application" aria-labelledby="app_title">
|
12 |
+
<span id="app_title" style="display:none">{#searchreplace_dlg.replace_title}</span>
|
13 |
<form onsubmit="SearchReplaceDialog.searchNext('none');return false;" action="#">
|
14 |
<div class="tabs">
|
15 |
<ul>
|
16 |
+
<li id="search_tab" aria-controls="search_panel"><span><a href="javascript:SearchReplaceDialog.switchMode('search');" onmousedown="return false;">{#searchreplace.search_desc}</a></span></li>
|
17 |
+
<li id="replace_tab" aria-controls="replace_panel"><span><a href="javascript:SearchReplaceDialog.switchMode('replace');" onmousedown="return false;">{#searchreplace_dlg.replace}</a></span></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
21 |
<div class="panel_wrapper">
|
22 |
<div id="search_panel" class="panel">
|
23 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="2">
|
24 |
<tr>
|
25 |
<td><label for="search_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
|
26 |
+
<td><input type="text" id="search_panel_searchstring" name="search_panel_searchstring" style="width: 200px" aria-required="true" /></td>
|
27 |
</tr>
|
28 |
<tr>
|
29 |
<td colspan="2">
|
30 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0" class="direction">
|
31 |
+
<tr role="group" aria-labelledby="search_panel_backwards_label">
|
32 |
+
<td><label id="search_panel_backwards_label">{#searchreplace_dlg.direction}</label></td>
|
33 |
<td><input id="search_panel_backwardsu" name="search_panel_backwards" class="radio" type="radio" /></td>
|
34 |
<td><label for="search_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
|
35 |
<td><input id="search_panel_backwardsd" name="search_panel_backwards" class="radio" type="radio" checked="checked" /></td>
|
40 |
</tr>
|
41 |
<tr>
|
42 |
<td colspan="2">
|
43 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
44 |
<tr>
|
45 |
<td><input id="search_panel_casesensitivebox" name="search_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
|
46 |
<td><label for="search_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
|
52 |
</div>
|
53 |
|
54 |
<div id="replace_panel" class="panel">
|
55 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="2">
|
56 |
<tr>
|
57 |
<td><label for="replace_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
|
58 |
+
<td><input type="text" id="replace_panel_searchstring" name="replace_panel_searchstring" style="width: 200px" aria-required="true" /></td>
|
59 |
</tr>
|
60 |
<tr>
|
61 |
<td><label for="replace_panel_replacestring">{#searchreplace_dlg.replacewith}</label></td>
|
62 |
+
<td><input type="text" id="replace_panel_replacestring" name="replace_panel_replacestring" style="width: 200px" aria-required="true" /></td>
|
63 |
</tr>
|
64 |
<tr>
|
65 |
<td colspan="2">
|
66 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0" class="direction">
|
67 |
+
<tr role="group" aria-labelledby="replace_panel_dir_label">
|
68 |
+
<td><label id="replace_panel_dir_label">{#searchreplace_dlg.direction}</label></td>
|
69 |
<td><input id="replace_panel_backwardsu" name="replace_panel_backwards" class="radio" type="radio" /></td>
|
70 |
<td><label for="replace_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
|
71 |
<td><input id="replace_panel_backwardsd" name="replace_panel_backwards" class="radio" type="radio" checked="checked" /></td>
|
76 |
</tr>
|
77 |
<tr>
|
78 |
<td colspan="2">
|
79 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
80 |
<tr>
|
81 |
<td><input id="replace_panel_casesensitivebox" name="replace_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
|
82 |
<td><label for="replace_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
|
90 |
</div>
|
91 |
|
92 |
<div class="mceActionPanel">
|
93 |
+
<input type="submit" id="insert" name="insert" value="{#searchreplace_dlg.findnext}" />
|
94 |
+
<input type="button" class="button" id="replaceBtn" name="replaceBtn" value="{#searchreplace_dlg.replace}" onclick="SearchReplaceDialog.searchNext('current');" />
|
95 |
+
<input type="button" class="button" id="replaceAllBtn" name="replaceAllBtn" value="{#searchreplace_dlg.replaceall}" onclick="SearchReplaceDialog.searchNext('all');" />
|
96 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
97 |
</div>
|
98 |
</form>
|
99 |
</body>
|
mce/style/js/props.js
CHANGED
@@ -177,11 +177,7 @@ function setupFormData() {
|
|
177 |
|
178 |
f.box_height.value = getNum(ce.style.height);
|
179 |
selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height));
|
180 |
-
|
181 |
-
if (tinymce.isGecko)
|
182 |
-
selectByValue(f, 'box_float', ce.style.cssFloat, true, true);
|
183 |
-
else
|
184 |
-
selectByValue(f, 'box_float', ce.style.styleFloat, true, true);
|
185 |
|
186 |
selectByValue(f, 'box_clear', ce.style.clear, true, true);
|
187 |
|
@@ -440,9 +436,7 @@ function generateCSS() {
|
|
440 |
ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : "");
|
441 |
ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : "");
|
442 |
ce.style.styleFloat = f.box_float.value;
|
443 |
-
|
444 |
-
if (tinymce.isGecko)
|
445 |
-
ce.style.cssFloat = f.box_float.value;
|
446 |
|
447 |
ce.style.clear = f.box_clear.value;
|
448 |
|
177 |
|
178 |
f.box_height.value = getNum(ce.style.height);
|
179 |
selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height));
|
180 |
+
selectByValue(f, 'box_float', ce.style.cssFloat || ce.style.styleFloat, true, true);
|
|
|
|
|
|
|
|
|
181 |
|
182 |
selectByValue(f, 'box_clear', ce.style.clear, true, true);
|
183 |
|
436 |
ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : "");
|
437 |
ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : "");
|
438 |
ce.style.styleFloat = f.box_float.value;
|
439 |
+
ce.style.cssFloat = f.box_float.value;
|
|
|
|
|
440 |
|
441 |
ce.style.clear = f.box_clear.value;
|
442 |
|
mce/style/langs/en_dlg.js
CHANGED
@@ -59,5 +59,12 @@ visibility:"Visibility",
|
|
59 |
zindex:"Z-index",
|
60 |
overflow:"Overflow",
|
61 |
placement:"Placement",
|
62 |
-
clip:"Clip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
});
|
59 |
zindex:"Z-index",
|
60 |
overflow:"Overflow",
|
61 |
placement:"Placement",
|
62 |
+
clip:"Clip",
|
63 |
+
text:"Text",
|
64 |
+
background:"Background",
|
65 |
+
block:"Block",
|
66 |
+
box:"Box",
|
67 |
+
border:"Border",
|
68 |
+
list:"List",
|
69 |
+
position:"Position"
|
70 |
});
|
mce/style/props.htm
CHANGED
@@ -2,285 +2,325 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#style_dlg.title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
9 |
-
<script type="text/javascript" src="js/props.js?ver=
|
10 |
-
<link href="css/props.css?ver=
|
11 |
</head>
|
12 |
|
13 |
-
<body id="styleprops" style="display: none">
|
|
|
14 |
<form onsubmit="updateAction();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="text_tab" class="current"><span><a href="javascript:mcTabs.displayTab('text_tab','text_panel');" onMouseDown="return false;">{#style_dlg.text_tab}</a></span></li>
|
18 |
-
<li id="background_tab"><span><a href="javascript:mcTabs.displayTab('background_tab','background_panel');" onMouseDown="return false;">{#style_dlg.background_tab}</a></span></li>
|
19 |
-
<li id="block_tab"><span><a href="javascript:mcTabs.displayTab('block_tab','block_panel');" onMouseDown="return false;">{#style_dlg.block_tab}</a></span></li>
|
20 |
-
<li id="box_tab"><span><a href="javascript:mcTabs.displayTab('box_tab','box_panel');" onMouseDown="return false;">{#style_dlg.box_tab}</a></span></li>
|
21 |
-
<li id="border_tab"><span><a href="javascript:mcTabs.displayTab('border_tab','border_panel');" onMouseDown="return false;">{#style_dlg.border_tab}</a></span></li>
|
22 |
-
<li id="list_tab"><span><a href="javascript:mcTabs.displayTab('list_tab','list_panel');" onMouseDown="return false;">{#style_dlg.list_tab}</a></span></li>
|
23 |
-
<li id="positioning_tab"><span><a href="javascript:mcTabs.displayTab('positioning_tab','positioning_panel');" onMouseDown="return false;">{#style_dlg.positioning_tab}</a></span></li>
|
24 |
</ul>
|
25 |
</div>
|
26 |
|
27 |
<div class="panel_wrapper">
|
28 |
<div id="text_panel" class="panel current">
|
29 |
-
<
|
30 |
-
<
|
31 |
-
|
32 |
-
<
|
33 |
-
<
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
<
|
39 |
-
<
|
40 |
-
|
41 |
-
|
42 |
-
<
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
</
|
57 |
-
<
|
58 |
-
|
59 |
-
<
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
<
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
<
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
</div>
|
120 |
|
121 |
<div id="background_panel" class="panel">
|
122 |
-
<
|
123 |
-
<
|
124 |
-
|
125 |
-
<
|
126 |
-
<
|
127 |
-
|
128 |
-
|
129 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
</tr>
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
<td><input id="background_image" name="background_image" type="text" /></td>
|
140 |
-
<td id="background_image_browser"> </td>
|
141 |
-
</tr>
|
142 |
-
</table>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
</tr>
|
165 |
-
</table>
|
166 |
-
</td>
|
167 |
-
</tr>
|
168 |
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
</tr>
|
178 |
-
</table>
|
179 |
-
</td>
|
180 |
-
</tr>
|
181 |
-
</table>
|
182 |
</div>
|
183 |
|
184 |
<div id="block_panel" class="panel">
|
185 |
-
<
|
186 |
-
<
|
187 |
-
|
188 |
-
<
|
189 |
-
<
|
190 |
-
|
191 |
-
|
192 |
-
<
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
|
|
|
|
|
|
211 |
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
</table>
|
232 |
-
</td>
|
233 |
-
</tr>
|
234 |
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
239 |
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
</div>
|
246 |
|
247 |
<div id="box_panel" class="panel">
|
248 |
-
<
|
249 |
-
|
250 |
-
<
|
251 |
-
|
252 |
-
|
253 |
-
<
|
254 |
-
<
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
</
|
|
|
|
|
|
|
279 |
<div style="float: left; width: 49%">
|
280 |
<fieldset>
|
281 |
<legend>{#style_dlg.padding}</legend>
|
282 |
|
283 |
-
<table border="0">
|
284 |
<tr>
|
285 |
<td> </td>
|
286 |
<td><input type="checkbox" id="box_padding_same" name="box_padding_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_padding');" /> <label for="box_padding_same">{#style_dlg.same}</label></td>
|
@@ -288,11 +328,14 @@
|
|
288 |
<tr>
|
289 |
<td><label for="box_padding_top">{#style_dlg.top}</label></td>
|
290 |
<td>
|
291 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
292 |
<tr>
|
293 |
<td><input type="text" id="box_padding_top" name="box_padding_top" class="mceEditableSelect" /></td>
|
294 |
<td> </td>
|
295 |
-
<td
|
|
|
|
|
|
|
296 |
</tr>
|
297 |
</table>
|
298 |
</td>
|
@@ -300,11 +343,14 @@
|
|
300 |
<tr>
|
301 |
<td><label for="box_padding_right">{#style_dlg.right}</label></td>
|
302 |
<td>
|
303 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
304 |
<tr>
|
305 |
<td><input type="text" id="box_padding_right" name="box_padding_right" class="mceEditableSelect" disabled="disabled" /></td>
|
306 |
<td> </td>
|
307 |
-
<td
|
|
|
|
|
|
|
308 |
</tr>
|
309 |
</table>
|
310 |
</td>
|
@@ -312,11 +358,14 @@
|
|
312 |
<tr>
|
313 |
<td><label for="box_padding_bottom">{#style_dlg.bottom}</label></td>
|
314 |
<td>
|
315 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
316 |
<tr>
|
317 |
<td><input type="text" id="box_padding_bottom" name="box_padding_bottom" class="mceEditableSelect" disabled="disabled" /></td>
|
318 |
<td> </td>
|
319 |
-
<td
|
|
|
|
|
|
|
320 |
</tr>
|
321 |
</table>
|
322 |
</td>
|
@@ -324,11 +373,14 @@
|
|
324 |
<tr>
|
325 |
<td><label for="box_padding_left">{#style_dlg.left}</label></td>
|
326 |
<td>
|
327 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
328 |
<tr>
|
329 |
<td><input type="text" id="box_padding_left" name="box_padding_left" class="mceEditableSelect" disabled="disabled" /></td>
|
330 |
<td> </td>
|
331 |
-
<td
|
|
|
|
|
|
|
332 |
</tr>
|
333 |
</table>
|
334 |
</td>
|
@@ -341,7 +393,7 @@
|
|
341 |
<fieldset>
|
342 |
<legend>{#style_dlg.margin}</legend>
|
343 |
|
344 |
-
<table border="0">
|
345 |
<tr>
|
346 |
<td> </td>
|
347 |
<td><input type="checkbox" id="box_margin_same" name="box_margin_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_margin');" /> <label for="box_margin_same">{#style_dlg.same}</label></td>
|
@@ -349,11 +401,14 @@
|
|
349 |
<tr>
|
350 |
<td><label for="box_margin_top">{#style_dlg.top}</label></td>
|
351 |
<td>
|
352 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
353 |
<tr>
|
354 |
<td><input type="text" id="box_margin_top" name="box_margin_top" class="mceEditableSelect" /></td>
|
355 |
<td> </td>
|
356 |
-
<td
|
|
|
|
|
|
|
357 |
</tr>
|
358 |
</table>
|
359 |
</td>
|
@@ -361,11 +416,14 @@
|
|
361 |
<tr>
|
362 |
<td><label for="box_margin_right">{#style_dlg.right}</label></td>
|
363 |
<td>
|
364 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
365 |
<tr>
|
366 |
<td><input type="text" id="box_margin_right" name="box_margin_right" class="mceEditableSelect" disabled="disabled" /></td>
|
367 |
<td> </td>
|
368 |
-
<td
|
|
|
|
|
|
|
369 |
</tr>
|
370 |
</table>
|
371 |
</td>
|
@@ -373,11 +431,14 @@
|
|
373 |
<tr>
|
374 |
<td><label for="box_margin_bottom">{#style_dlg.bottom}</label></td>
|
375 |
<td>
|
376 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
377 |
<tr>
|
378 |
<td><input type="text" id="box_margin_bottom" name="box_margin_bottom" class="mceEditableSelect" disabled="disabled" /></td>
|
379 |
<td> </td>
|
380 |
-
<td
|
|
|
|
|
|
|
381 |
</tr>
|
382 |
</table>
|
383 |
</td>
|
@@ -385,11 +446,14 @@
|
|
385 |
<tr>
|
386 |
<td><label for="box_margin_left">{#style_dlg.left}</label></td>
|
387 |
<td>
|
388 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
389 |
<tr>
|
390 |
<td><input type="text" id="box_margin_left" name="box_margin_left" class="mceEditableSelect" disabled="disabled" /></td>
|
391 |
<td> </td>
|
392 |
-
<td
|
|
|
|
|
|
|
393 |
</tr>
|
394 |
</table>
|
395 |
</td>
|
@@ -401,131 +465,148 @@
|
|
401 |
</div>
|
402 |
|
403 |
<div id="border_panel" class="panel">
|
404 |
-
<
|
405 |
-
<
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
<
|
433 |
-
<
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
<
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
<tr>
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
</
|
499 |
-
|
500 |
-
<
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
</table>
|
522 |
-
</
|
523 |
-
</tr>
|
524 |
-
</table>
|
525 |
</div>
|
526 |
|
527 |
<div id="list_panel" class="panel">
|
528 |
-
|
|
|
|
|
529 |
<tr>
|
530 |
<td><label for="list_type">{#style_dlg.list_type}</label></td>
|
531 |
<td><select id="list_type" name="list_type" class="mceEditableSelect"></select></td>
|
@@ -541,10 +622,13 @@
|
|
541 |
<td><select id="list_position" name="list_position" class="mceEditableSelect"></select></td>
|
542 |
</tr>
|
543 |
</table>
|
|
|
544 |
</div>
|
545 |
|
546 |
<div id="positioning_panel" class="panel">
|
547 |
-
<
|
|
|
|
|
548 |
<tr>
|
549 |
<td><label for="positioning_type">{#style_dlg.positioning_type}</label></td>
|
550 |
<td><select id="positioning_type" name="positioning_type" class="mceEditableSelect"></select></td>
|
@@ -555,11 +639,14 @@
|
|
555 |
<tr>
|
556 |
<td><label for="positioning_width">{#style_dlg.width}</label></td>
|
557 |
<td>
|
558 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
559 |
<tr>
|
560 |
<td><input type="text" id="positioning_width" name="positioning_width" onChange="synch('positioning_width','box_width');" /></td>
|
561 |
<td> </td>
|
562 |
-
<td
|
|
|
|
|
|
|
563 |
</tr>
|
564 |
</table>
|
565 |
</td>
|
@@ -570,11 +657,14 @@
|
|
570 |
<tr>
|
571 |
<td><label for="positioning_height">{#style_dlg.height}</label></td>
|
572 |
<td>
|
573 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
574 |
<tr>
|
575 |
<td><input type="text" id="positioning_height" name="positioning_height" onChange="synch('positioning_height','box_height');" /></td>
|
576 |
<td> </td>
|
577 |
-
<td
|
|
|
|
|
|
|
578 |
</tr>
|
579 |
</table>
|
580 |
</td>
|
@@ -587,7 +677,7 @@
|
|
587 |
<fieldset>
|
588 |
<legend>{#style_dlg.placement}</legend>
|
589 |
|
590 |
-
<table border="0">
|
591 |
<tr>
|
592 |
<td> </td>
|
593 |
<td><input type="checkbox" id="positioning_placement_same" name="positioning_placement_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_placement');" /> <label for="positioning_placement_same">{#style_dlg.same}</label></td>
|
@@ -595,11 +685,14 @@
|
|
595 |
<tr>
|
596 |
<td>{#style_dlg.top}</td>
|
597 |
<td>
|
598 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
599 |
<tr>
|
600 |
<td><input type="text" id="positioning_placement_top" name="positioning_placement_top" /></td>
|
601 |
<td> </td>
|
602 |
-
<td
|
|
|
|
|
|
|
603 |
</tr>
|
604 |
</table>
|
605 |
</td>
|
@@ -607,11 +700,14 @@
|
|
607 |
<tr>
|
608 |
<td>{#style_dlg.right}</td>
|
609 |
<td>
|
610 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
611 |
<tr>
|
612 |
<td><input type="text" id="positioning_placement_right" name="positioning_placement_right" disabled="disabled" /></td>
|
613 |
<td> </td>
|
614 |
-
<td
|
|
|
|
|
|
|
615 |
</tr>
|
616 |
</table>
|
617 |
</td>
|
@@ -619,11 +715,14 @@
|
|
619 |
<tr>
|
620 |
<td>{#style_dlg.bottom}</td>
|
621 |
<td>
|
622 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
623 |
<tr>
|
624 |
<td><input type="text" id="positioning_placement_bottom" name="positioning_placement_bottom" disabled="disabled" /></td>
|
625 |
<td> </td>
|
626 |
-
<td
|
|
|
|
|
|
|
627 |
</tr>
|
628 |
</table>
|
629 |
</td>
|
@@ -631,11 +730,14 @@
|
|
631 |
<tr>
|
632 |
<td>{#style_dlg.left}</td>
|
633 |
<td>
|
634 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
635 |
<tr>
|
636 |
<td><input type="text" id="positioning_placement_left" name="positioning_placement_left" disabled="disabled" /></td>
|
637 |
<td> </td>
|
638 |
-
<td
|
|
|
|
|
|
|
639 |
</tr>
|
640 |
</table>
|
641 |
</td>
|
@@ -648,7 +750,7 @@
|
|
648 |
<fieldset>
|
649 |
<legend>{#style_dlg.clip}</legend>
|
650 |
|
651 |
-
<table border="0">
|
652 |
<tr>
|
653 |
<td> </td>
|
654 |
<td><input type="checkbox" id="positioning_clip_same" name="positioning_clip_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_clip');" /> <label for="positioning_clip_same">{#style_dlg.same}</label></td>
|
@@ -656,11 +758,14 @@
|
|
656 |
<tr>
|
657 |
<td>{#style_dlg.top}</td>
|
658 |
<td>
|
659 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
660 |
<tr>
|
661 |
<td><input type="text" id="positioning_clip_top" name="positioning_clip_top" /></td>
|
662 |
<td> </td>
|
663 |
-
<td
|
|
|
|
|
|
|
664 |
</tr>
|
665 |
</table>
|
666 |
</td>
|
@@ -668,11 +773,14 @@
|
|
668 |
<tr>
|
669 |
<td>{#style_dlg.right}</td>
|
670 |
<td>
|
671 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
672 |
<tr>
|
673 |
<td><input type="text" id="positioning_clip_right" name="positioning_clip_right" disabled="disabled" /></td>
|
674 |
<td> </td>
|
675 |
-
<td
|
|
|
|
|
|
|
676 |
</tr>
|
677 |
</table>
|
678 |
</td>
|
@@ -680,11 +788,14 @@
|
|
680 |
<tr>
|
681 |
<td>{#style_dlg.bottom}</td>
|
682 |
<td>
|
683 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
684 |
<tr>
|
685 |
<td><input type="text" id="positioning_clip_bottom" name="positioning_clip_bottom" disabled="disabled" /></td>
|
686 |
<td> </td>
|
687 |
-
<td
|
|
|
|
|
|
|
688 |
</tr>
|
689 |
</table>
|
690 |
</td>
|
@@ -692,11 +803,14 @@
|
|
692 |
<tr>
|
693 |
<td>{#style_dlg.left}</td>
|
694 |
<td>
|
695 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
696 |
<tr>
|
697 |
<td><input type="text" id="positioning_clip_left" name="positioning_clip_left" disabled="disabled" /></td>
|
698 |
<td> </td>
|
699 |
-
<td
|
|
|
|
|
|
|
700 |
</tr>
|
701 |
</table>
|
702 |
</td>
|
@@ -706,19 +820,13 @@
|
|
706 |
</div>
|
707 |
<br style="clear: both" />
|
708 |
</div>
|
|
|
709 |
</div>
|
710 |
|
711 |
<div class="mceActionPanel">
|
712 |
-
<
|
713 |
-
|
714 |
-
|
715 |
-
<div style="float: left"> <input type="button" class="button" id="apply" name="apply" value="{#style_dlg.apply}" onClick="applyAction();" /></div>
|
716 |
-
<br style="clear: both" />
|
717 |
-
</div>
|
718 |
-
|
719 |
-
<div style="float: right">
|
720 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onClick="tinyMCEPopup.close();" />
|
721 |
-
</div>
|
722 |
</div>
|
723 |
</form>
|
724 |
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#style_dlg.title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/props.js?ver=342"></script>
|
10 |
+
<link href="css/props.css?ver=342" rel="stylesheet" type="text/css" />
|
11 |
</head>
|
12 |
|
13 |
+
<body id="styleprops" style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span id="app_title" style="display:none">{#style_dlg.title}</span>
|
15 |
<form onsubmit="updateAction();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="text_tab" class="current" aria-controls="text_panel"><span><a href="javascript:mcTabs.displayTab('text_tab','text_panel');" onMouseDown="return false;">{#style_dlg.text_tab}</a></span></li>
|
19 |
+
<li id="background_tab" aria-controls="background_panel"><span><a href="javascript:mcTabs.displayTab('background_tab','background_panel');" onMouseDown="return false;">{#style_dlg.background_tab}</a></span></li>
|
20 |
+
<li id="block_tab" aria-controls="block_panel"><span><a href="javascript:mcTabs.displayTab('block_tab','block_panel');" onMouseDown="return false;">{#style_dlg.block_tab}</a></span></li>
|
21 |
+
<li id="box_tab" aria-controls="box_panel"><span><a href="javascript:mcTabs.displayTab('box_tab','box_panel');" onMouseDown="return false;">{#style_dlg.box_tab}</a></span></li>
|
22 |
+
<li id="border_tab" aria-controls="border_panel"><span><a href="javascript:mcTabs.displayTab('border_tab','border_panel');" onMouseDown="return false;">{#style_dlg.border_tab}</a></span></li>
|
23 |
+
<li id="list_tab" aria-controls="list_panel"><span><a href="javascript:mcTabs.displayTab('list_tab','list_panel');" onMouseDown="return false;">{#style_dlg.list_tab}</a></span></li>
|
24 |
+
<li id="positioning_tab" aria-controls="positioning_panel"><span><a href="javascript:mcTabs.displayTab('positioning_tab','positioning_panel');" onMouseDown="return false;">{#style_dlg.positioning_tab}</a></span></li>
|
25 |
</ul>
|
26 |
</div>
|
27 |
|
28 |
<div class="panel_wrapper">
|
29 |
<div id="text_panel" class="panel current">
|
30 |
+
<fieldset>
|
31 |
+
<legend>{#style_dlg.text}</legend>
|
32 |
+
<table role="presentation" border="0" width="100%">
|
33 |
+
<tr>
|
34 |
+
<td><label for="text_font">{#style_dlg.text_font}</label></td>
|
35 |
+
<td colspan="3">
|
36 |
+
<select id="text_font" name="text_font" class="mceEditableSelect mceFocus"></select>
|
37 |
+
</td>
|
38 |
+
</tr>
|
39 |
+
<tr>
|
40 |
+
<td><label for="text_size">{#style_dlg.text_size}</label></td>
|
41 |
+
<td>
|
42 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
43 |
+
<tr>
|
44 |
+
<td><select id="text_size" name="text_size" class="mceEditableSelect"></select></td>
|
45 |
+
<td> </td>
|
46 |
+
<td>
|
47 |
+
<label id="text_size_measurement_label" for="text_size_measurement" style="display: none; visibility: hidden;">Text Size Measurement Unit</label>
|
48 |
+
<select id="text_size_measurement" name="text_size_measurement" aria-labelledby="text_size_measurement_label"></select>
|
49 |
+
</td>
|
50 |
+
</tr>
|
51 |
+
</table>
|
52 |
+
</td>
|
53 |
+
<td><label for="text_weight">{#style_dlg.text_weight}</label></td>
|
54 |
+
<td>
|
55 |
+
<select id="text_weight" name="text_weight"></select>
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
<tr>
|
59 |
+
<td><label for="text_style">{#style_dlg.text_style}</label></td>
|
60 |
+
<td>
|
61 |
+
<select id="text_style" name="text_style" class="mceEditableSelect"></select>
|
62 |
+
</td>
|
63 |
+
<td><label for="text_variant">{#style_dlg.text_variant}</label></td>
|
64 |
+
<td>
|
65 |
+
<select id="text_variant" name="text_variant"></select>
|
66 |
+
</td>
|
67 |
+
</tr>
|
68 |
+
<tr>
|
69 |
+
<td><label for="text_lineheight">{#style_dlg.text_lineheight}</label></td>
|
70 |
+
<td>
|
71 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
72 |
+
<tr>
|
73 |
+
<td>
|
74 |
+
<select id="text_lineheight" name="text_lineheight" class="mceEditableSelect"></select>
|
75 |
+
</td>
|
76 |
+
<td> </td>
|
77 |
+
<td>
|
78 |
+
<label id="text_lineheight_measurement_label" for="text_lineheight_measurement" style="display: none; visibility: hidden;">Line Height Measurement Unit</label>
|
79 |
+
<select id="text_lineheight_measurement" name="text_lineheight_measurement" aria-labelledby="text_lineheight_measurement_label"></select>
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
</table>
|
83 |
+
</td>
|
84 |
+
<td><label for="text_case">{#style_dlg.text_case}</label></td>
|
85 |
+
<td>
|
86 |
+
<select id="text_case" name="text_case"></select>
|
87 |
+
</td>
|
88 |
+
</tr>
|
89 |
+
<tr>
|
90 |
+
<td><label for="text_color">{#style_dlg.text_color}</label></td>
|
91 |
+
<td colspan="2">
|
92 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
93 |
+
<tr>
|
94 |
+
<td><input id="text_color" name="text_color" type="text" value="" size="9" onChange="updateColor('text_color_pick','text_color');" /></td>
|
95 |
+
<td id="text_color_pickcontainer"> </td>
|
96 |
+
</tr>
|
97 |
+
</table>
|
98 |
+
</td>
|
99 |
+
</tr>
|
100 |
+
<tr>
|
101 |
+
<td valign="top" style="vertical-align: top; padding-top: 3px;">{#style_dlg.text_decoration}</td>
|
102 |
+
<td colspan="2">
|
103 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
104 |
+
<tr>
|
105 |
+
<td><input id="text_underline" name="text_underline" class="checkbox" type="checkbox" /></td>
|
106 |
+
<td><label for="text_underline">{#style_dlg.text_underline}</label></td>
|
107 |
+
</tr>
|
108 |
+
<tr>
|
109 |
+
<td><input id="text_overline" name="text_overline" class="checkbox" type="checkbox" /></td>
|
110 |
+
<td><label for="text_overline">{#style_dlg.text_overline}</label></td>
|
111 |
+
</tr>
|
112 |
+
<tr>
|
113 |
+
<td><input id="text_linethrough" name="text_linethrough" class="checkbox" type="checkbox" /></td>
|
114 |
+
<td><label for="text_linethrough">{#style_dlg.text_striketrough}</label></td>
|
115 |
+
</tr>
|
116 |
+
<tr>
|
117 |
+
<td><input id="text_blink" name="text_blink" class="checkbox" type="checkbox" /></td>
|
118 |
+
<td><label for="text_blink">{#style_dlg.text_blink}</label></td>
|
119 |
+
</tr>
|
120 |
+
<tr>
|
121 |
+
<td><input id="text_none" name="text_none" class="checkbox" type="checkbox" /></td>
|
122 |
+
<td><label for="text_none">{#style_dlg.text_none}</label></td>
|
123 |
+
</tr>
|
124 |
+
</table>
|
125 |
+
</td>
|
126 |
+
</tr>
|
127 |
+
</table>
|
128 |
+
</fieldset>
|
129 |
</div>
|
130 |
|
131 |
<div id="background_panel" class="panel">
|
132 |
+
<fieldset>
|
133 |
+
<legend>{#style_dlg.background}</legend>
|
134 |
+
<table role="presentation" border="0">
|
135 |
+
<tr>
|
136 |
+
<td><label for="background_color">{#style_dlg.background_color}</label></td>
|
137 |
+
<td>
|
138 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
139 |
+
<tr>
|
140 |
+
<td><input id="background_color" name="background_color" type="text" value="" size="9" onChange="updateColor('background_color_pick','background_color');" /></td>
|
141 |
+
<td id="background_color_pickcontainer"> </td>
|
142 |
+
</tr>
|
143 |
+
</table>
|
144 |
+
</td>
|
145 |
+
</tr>
|
146 |
+
|
147 |
+
<tr>
|
148 |
+
<td><label for="background_image">{#style_dlg.background_image}</label></td>
|
149 |
+
<td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
150 |
+
<tr>
|
151 |
+
<td><input id="background_image" name="background_image" type="text" /></td>
|
152 |
+
<td id="background_image_browser"> </td>
|
153 |
</tr>
|
154 |
+
</table>
|
155 |
+
</td>
|
156 |
+
</tr>
|
157 |
|
158 |
+
<tr>
|
159 |
+
<td><label for="background_repeat">{#style_dlg.background_repeat}</label></td>
|
160 |
+
<td><select id="background_repeat" name="background_repeat" class="mceEditableSelect"></select></td>
|
161 |
+
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
+
<tr>
|
164 |
+
<td><label for="background_attachment">{#style_dlg.background_attachment}</label></td>
|
165 |
+
<td><select id="background_attachment" name="background_attachment" class="mceEditableSelect"></select></td>
|
166 |
+
</tr>
|
167 |
|
168 |
+
<tr>
|
169 |
+
<td><label for="background_hpos">{#style_dlg.background_hpos}</label></td>
|
170 |
+
<td>
|
171 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
172 |
+
<tr>
|
173 |
+
<td><select id="background_hpos" name="background_hpos" class="mceEditableSelect"></select></td>
|
174 |
+
<td> </td>
|
175 |
+
<td>
|
176 |
+
<label id="background_hpos_measurement_label" for="background_hpos_measurement" style="display: none; visibility: hidden;">Horizontal position measurement unit</label>
|
177 |
+
<select id="background_hpos_measurement" name="background_hpos_measurement" aria-labelledby="background_hpos_measurement_label"></select>
|
178 |
+
</td>
|
179 |
+
</tr>
|
180 |
+
</table>
|
181 |
+
</td>
|
182 |
+
</tr>
|
183 |
|
184 |
+
<tr>
|
185 |
+
<td><label for="background_vpos">{#style_dlg.background_vpos}</label></td>
|
186 |
+
<td>
|
187 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
188 |
+
<tr>
|
189 |
+
<td><select id="background_vpos" name="background_vpos" class="mceEditableSelect"></select></td>
|
190 |
+
<td> </td>
|
191 |
+
<td>
|
|
|
|
|
|
|
|
|
192 |
|
193 |
+
<label id="background_vpos_measurement_label" for="background_vpos_measurement" style="display: none; visibility: hidden;">Vertical position measurement unit</label>
|
194 |
+
<select id="background_vpos_measurement" name="background_vpos_measurement" aria-labelledby="background_vpos_measurement_label">></select></td>
|
195 |
+
</tr>
|
196 |
+
</table>
|
197 |
+
</td>
|
198 |
+
</tr>
|
199 |
+
</table>
|
200 |
+
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
201 |
</div>
|
202 |
|
203 |
<div id="block_panel" class="panel">
|
204 |
+
<fieldset>
|
205 |
+
<legend>{#style_dlg.block}</legend>
|
206 |
+
<table role="presentation" border="0">
|
207 |
+
<tr>
|
208 |
+
<td><label for="block_wordspacing">{#style_dlg.block_wordspacing}</label></td>
|
209 |
+
<td>
|
210 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
211 |
+
<tr>
|
212 |
+
<td><select id="block_wordspacing" name="block_wordspacing" class="mceEditableSelect"></select></td>
|
213 |
+
<td> </td>
|
214 |
+
<td>
|
215 |
+
<label id="block_wordspacing_measurement_label" for="block_wordspacing_measurement" style="display: none; visibility: hidden;">Word spacing measurement unit</label>
|
216 |
+
<select id="block_wordspacing_measurement" name="block_wordspacing_measurement" aria-labelledby="block_wordspacing_measurement_label"></select>
|
217 |
+
</td>
|
218 |
+
</tr>
|
219 |
+
</table>
|
220 |
+
</td>
|
221 |
+
</tr>
|
222 |
|
223 |
+
<tr>
|
224 |
+
<td><label for="block_letterspacing">{#style_dlg.block_letterspacing}</label></td>
|
225 |
+
<td>
|
226 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
227 |
+
<tr>
|
228 |
+
<td><select id="block_letterspacing" name="block_letterspacing" class="mceEditableSelect"></select></td>
|
229 |
+
<td> </td>
|
230 |
+
<td>
|
231 |
+
<label id="block_letterspacing_measurement_label" for="block_letterspacing_measurement" style="display: none; visibility: hidden;">Letter spacing measurement unit</label>
|
232 |
+
<select id="block_letterspacing_measurement" name="block_letterspacing_measurement" aria-labelledby="block_letterspacing_measurement_label"></select>
|
233 |
+
</td>
|
234 |
+
</tr>
|
235 |
+
</table>
|
236 |
+
</td>
|
237 |
+
</tr>
|
238 |
|
239 |
+
<tr>
|
240 |
+
<td><label for="block_vertical_alignment">{#style_dlg.block_vertical_alignment}</label></td>
|
241 |
+
<td><select id="block_vertical_alignment" name="block_vertical_alignment" class="mceEditableSelect"></select></td>
|
242 |
+
</tr>
|
243 |
|
244 |
+
<tr>
|
245 |
+
<td><label for="block_text_align">{#style_dlg.block_text_align}</label></td>
|
246 |
+
<td><select id="block_text_align" name="block_text_align" class="mceEditableSelect"></select></td>
|
247 |
+
</tr>
|
248 |
|
249 |
+
<tr>
|
250 |
+
<td><label for="block_text_indent">{#style_dlg.block_text_indent}</label></td>
|
251 |
+
<td>
|
252 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
253 |
+
<tr>
|
254 |
+
<td><input type="text" id="block_text_indent" name="block_text_indent" /></td>
|
255 |
+
<td> </td>
|
256 |
+
<td>
|
257 |
+
<label id="block_text_indent_measurement_label" for="block_text_indent_measurement" style="display: none; visibility: hidden;">Text Indent Measurement Unit</label>
|
|
|
|
|
|
|
258 |
|
259 |
+
<select id="block_text_indent_measurement" name="block_text_indent_measurement" aria-labelledby="block_text_indent_measurement_label"></select>
|
260 |
+
</td>
|
261 |
+
</tr>
|
262 |
+
</table>
|
263 |
+
</td>
|
264 |
+
</tr>
|
265 |
|
266 |
+
<tr>
|
267 |
+
<td><label for="block_whitespace">{#style_dlg.block_whitespace}</label></td>
|
268 |
+
<td><select id="block_whitespace" name="block_whitespace" class="mceEditableSelect"></select></td>
|
269 |
+
</tr>
|
270 |
+
|
271 |
+
<tr>
|
272 |
+
<td><label for="block_display">{#style_dlg.block_display}</label></td>
|
273 |
+
<td><select id="block_display" name="block_display" class="mceEditableSelect"></select></td>
|
274 |
+
</tr>
|
275 |
+
</table>
|
276 |
+
</fieldset>
|
277 |
</div>
|
278 |
|
279 |
<div id="box_panel" class="panel">
|
280 |
+
<fieldset>
|
281 |
+
<legend>{#style_dlg.box}</legend>
|
282 |
+
<table role="presentation" border="0">
|
283 |
+
<tr>
|
284 |
+
<td><label for="box_width">{#style_dlg.box_width}</label></td>
|
285 |
+
<td>
|
286 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
287 |
+
<tr>
|
288 |
+
<td><input type="text" id="box_width" name="box_width" class="mceEditableSelect" onChange="synch('box_width','positioning_width');" /></td>
|
289 |
+
<td> </td>
|
290 |
+
<td>
|
291 |
+
<label id="box_width_measurement_label" for="box_width_measurement" style="display: none; visibility: hidden;">Box Width Measurement Unit</label>
|
292 |
+
<select id="box_width_measurement" name="box_width_measurement" aria-labelledby="box_width_measurement_label"></select>
|
293 |
+
</td>
|
294 |
+
</tr>
|
295 |
+
</table>
|
296 |
+
</td>
|
297 |
+
<td> <label for="box_float">{#style_dlg.box_float}</label></td>
|
298 |
+
<td><select id="box_float" name="box_float" class="mceEditableSelect"></select></td>
|
299 |
+
</tr>
|
300 |
|
301 |
+
<tr>
|
302 |
+
<td><label for="box_height">{#style_dlg.box_height}</label></td>
|
303 |
+
<td>
|
304 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
305 |
+
<tr>
|
306 |
+
<td><input type="text" id="box_height" name="box_height" class="mceEditableSelect" onChange="synch('box_height','positioning_height');" /></td>
|
307 |
+
<td> </td>
|
308 |
+
<td>
|
309 |
+
<label id="box_height_measurement_label" for="box_height_measurement" style="display: none; visibility: hidden;">Box Height Measurement Unit</label>
|
310 |
+
<select id="box_height_measurement" name="box_height_measurement" aria-labelledby="box_height_measurement_label"></select>
|
311 |
+
</td>
|
312 |
+
</tr>
|
313 |
+
</table>
|
314 |
+
</td>
|
315 |
+
<td> <label for="box_clear">{#style_dlg.box_clear}</label></td>
|
316 |
+
<td><select id="box_clear" name="box_clear" class="mceEditableSelect"></select></td>
|
317 |
+
</tr>
|
318 |
+
</table>
|
319 |
<div style="float: left; width: 49%">
|
320 |
<fieldset>
|
321 |
<legend>{#style_dlg.padding}</legend>
|
322 |
|
323 |
+
<table role="presentation" border="0">
|
324 |
<tr>
|
325 |
<td> </td>
|
326 |
<td><input type="checkbox" id="box_padding_same" name="box_padding_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_padding');" /> <label for="box_padding_same">{#style_dlg.same}</label></td>
|
328 |
<tr>
|
329 |
<td><label for="box_padding_top">{#style_dlg.top}</label></td>
|
330 |
<td>
|
331 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
332 |
<tr>
|
333 |
<td><input type="text" id="box_padding_top" name="box_padding_top" class="mceEditableSelect" /></td>
|
334 |
<td> </td>
|
335 |
+
<td>
|
336 |
+
<label id="box_padding_top_measurement_label" for="box_padding_top_measurement" style="display: none; visibility: hidden;">Padding Top Measurement Unit</label>
|
337 |
+
<select id="box_padding_top_measurement" name="box_padding_top_measurement" aria-labelledby="box_padding_top_measurement_label"></select>
|
338 |
+
</td>
|
339 |
</tr>
|
340 |
</table>
|
341 |
</td>
|
343 |
<tr>
|
344 |
<td><label for="box_padding_right">{#style_dlg.right}</label></td>
|
345 |
<td>
|
346 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
347 |
<tr>
|
348 |
<td><input type="text" id="box_padding_right" name="box_padding_right" class="mceEditableSelect" disabled="disabled" /></td>
|
349 |
<td> </td>
|
350 |
+
<td>
|
351 |
+
<label id="box_padding_right_measurement_label" for="box_padding_right_measurement" style="display: none; visibility: hidden;">Padding Right Measurement Unit</label>
|
352 |
+
<select id="box_padding_right_measurement" name="box_padding_right_measurement" disabled="disabled" aria-labelledby="box_padding_right_measurement_label"></select>
|
353 |
+
</td>
|
354 |
</tr>
|
355 |
</table>
|
356 |
</td>
|
358 |
<tr>
|
359 |
<td><label for="box_padding_bottom">{#style_dlg.bottom}</label></td>
|
360 |
<td>
|
361 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
362 |
<tr>
|
363 |
<td><input type="text" id="box_padding_bottom" name="box_padding_bottom" class="mceEditableSelect" disabled="disabled" /></td>
|
364 |
<td> </td>
|
365 |
+
<td>
|
366 |
+
<label id="box_padding_bottom_measurement_label" for="box_padding_bottom_measurement" style="display: none; visibility: hidden;">Padding Bottom Measurement Unit</label>
|
367 |
+
<select id="box_padding_bottom_measurement" name="box_padding_bottom_measurement" disabled="disabled" aria-labelledby="box_padding_bottom_measurement_label"></select>
|
368 |
+
</td>
|
369 |
</tr>
|
370 |
</table>
|
371 |
</td>
|
373 |
<tr>
|
374 |
<td><label for="box_padding_left">{#style_dlg.left}</label></td>
|
375 |
<td>
|
376 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
377 |
<tr>
|
378 |
<td><input type="text" id="box_padding_left" name="box_padding_left" class="mceEditableSelect" disabled="disabled" /></td>
|
379 |
<td> </td>
|
380 |
+
<td>
|
381 |
+
<label id="box_padding_left_measurement_label" for="box_padding_left_measurement" style="display: none; visibility: hidden;">Padding Left Measurement Unit</label>
|
382 |
+
<select id="box_padding_left_measurement" name="box_padding_left_measurement" disabled="disabled" aria-labelledby="box_padding_left_measurement_label"></select>
|
383 |
+
</td>
|
384 |
</tr>
|
385 |
</table>
|
386 |
</td>
|
393 |
<fieldset>
|
394 |
<legend>{#style_dlg.margin}</legend>
|
395 |
|
396 |
+
<table role="presentation" border="0">
|
397 |
<tr>
|
398 |
<td> </td>
|
399 |
<td><input type="checkbox" id="box_margin_same" name="box_margin_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_margin');" /> <label for="box_margin_same">{#style_dlg.same}</label></td>
|
401 |
<tr>
|
402 |
<td><label for="box_margin_top">{#style_dlg.top}</label></td>
|
403 |
<td>
|
404 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
405 |
<tr>
|
406 |
<td><input type="text" id="box_margin_top" name="box_margin_top" class="mceEditableSelect" /></td>
|
407 |
<td> </td>
|
408 |
+
<td>
|
409 |
+
<label id="box_margin_top_measurement_label" for="box_margin_top_measurement" style="display: none; visibility: hidden;">Margin Top Measurement Unit</label>
|
410 |
+
<select id="box_margin_top_measurement" name="box_margin_top_measurement" aria-labelledby="box_margin_top_measurement_label"></select>
|
411 |
+
</td>
|
412 |
</tr>
|
413 |
</table>
|
414 |
</td>
|
416 |
<tr>
|
417 |
<td><label for="box_margin_right">{#style_dlg.right}</label></td>
|
418 |
<td>
|
419 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
420 |
<tr>
|
421 |
<td><input type="text" id="box_margin_right" name="box_margin_right" class="mceEditableSelect" disabled="disabled" /></td>
|
422 |
<td> </td>
|
423 |
+
<td>
|
424 |
+
<label id="box_margin_right_measurement_label" for="box_margin_right_measurement" style="display: none; visibility: hidden;">Margin Right Measurement Unit</label>
|
425 |
+
<select id="box_margin_right_measurement" name="box_margin_right_measurement" disabled="disabled" aria-labelledby="box_margin_right_measurement_label"></select>
|
426 |
+
</td>
|
427 |
</tr>
|
428 |
</table>
|
429 |
</td>
|
431 |
<tr>
|
432 |
<td><label for="box_margin_bottom">{#style_dlg.bottom}</label></td>
|
433 |
<td>
|
434 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
435 |
<tr>
|
436 |
<td><input type="text" id="box_margin_bottom" name="box_margin_bottom" class="mceEditableSelect" disabled="disabled" /></td>
|
437 |
<td> </td>
|
438 |
+
<td>
|
439 |
+
<label id="box_margin_bottom_measurement_label" for="box_margin_bottom_measurement" style="display: none; visibility: hidden;">Margin Bottom Measurement Unit</label>
|
440 |
+
<select id="box_margin_bottom_measurement" name="box_margin_bottom_measurement" disabled="disabled" aria-labelledby="box_margin_bottom_measurement_label"></select>
|
441 |
+
</td>
|
442 |
</tr>
|
443 |
</table>
|
444 |
</td>
|
446 |
<tr>
|
447 |
<td><label for="box_margin_left">{#style_dlg.left}</label></td>
|
448 |
<td>
|
449 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
450 |
<tr>
|
451 |
<td><input type="text" id="box_margin_left" name="box_margin_left" class="mceEditableSelect" disabled="disabled" /></td>
|
452 |
<td> </td>
|
453 |
+
<td>
|
454 |
+
<label id="box_margin_left_measurement_label" for="box_margin_left_measurement" style="display: none; visibility: hidden;">Margin Left Measurement Unit</label>
|
455 |
+
<select id="box_margin_left_measurement" name="box_margin_left_measurement" disabled="disabled" aria-labelledby="box_margin_left_measurement_label"></select>
|
456 |
+
</td>
|
457 |
</tr>
|
458 |
</table>
|
459 |
</td>
|
465 |
</div>
|
466 |
|
467 |
<div id="border_panel" class="panel">
|
468 |
+
<fieldset>
|
469 |
+
<legend>{#style_dlg.border}</legend>
|
470 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%">
|
471 |
+
<tr>
|
472 |
+
<td class="tdelim"> </td>
|
473 |
+
<td class="tdelim delim"> </td>
|
474 |
+
<td class="tdelim">{#style_dlg.style}</td>
|
475 |
+
<td class="tdelim delim"> </td>
|
476 |
+
<td class="tdelim">{#style_dlg.width}</td>
|
477 |
+
<td class="tdelim delim"> </td>
|
478 |
+
<td class="tdelim">{#style_dlg.color}</td>
|
479 |
+
</tr>
|
480 |
+
|
481 |
+
<tr>
|
482 |
+
<td> </td>
|
483 |
+
<td class="delim"> </td>
|
484 |
+
<td><input type="checkbox" id="border_style_same" name="border_style_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_style');" /> <label for="border_style_same">{#style_dlg.same}</label></td>
|
485 |
+
<td class="delim"> </td>
|
486 |
+
<td><input type="checkbox" id="border_width_same" name="border_width_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_width');" /> <label for="border_width_same">{#style_dlg.same}</label></td>
|
487 |
+
<td class="delim"> </td>
|
488 |
+
<td><input type="checkbox" id="border_color_same" name="border_color_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_color');" /> <label for="border_color_same">{#style_dlg.same}</label></td>
|
489 |
+
</tr>
|
490 |
+
|
491 |
+
<tr>
|
492 |
+
<td>{#style_dlg.top}</td>
|
493 |
+
<td class="delim"> </td>
|
494 |
+
<td><select id="border_style_top" name="border_style_top" class="mceEditableSelect"></select></td>
|
495 |
+
<td class="delim"> </td>
|
496 |
+
<td>
|
497 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
498 |
+
<tr>
|
499 |
+
<td><select id="border_width_top" name="border_width_top" class="mceEditableSelect"></select></td>
|
500 |
+
<td> </td>
|
501 |
+
<td>
|
502 |
+
<label id="border_width_top_measurement_label" for="border_width_top_measurement" style="display: none; visibility: hidden;">Width top Measurement Unit</label>
|
503 |
+
<select id="border_width_top_measurement" name="border_width_top_measurement" aria-labelledby="border_width_top_measurement_label"></select>
|
504 |
+
</td>
|
505 |
+
</tr>
|
506 |
+
</table>
|
507 |
+
</td>
|
508 |
+
<td class="delim"> </td>
|
509 |
+
<td>
|
510 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
511 |
+
<tr>
|
512 |
+
<td><input id="border_color_top" name="border_color_top" type="text" value="" size="9" onChange="updateColor('border_color_top_pick','border_color_top');" /></td>
|
513 |
+
<td id="border_color_top_pickcontainer"> </td>
|
514 |
+
</tr>
|
515 |
+
</table>
|
516 |
+
</td>
|
517 |
+
</tr>
|
518 |
+
|
519 |
+
<tr>
|
520 |
+
<td>{#style_dlg.right}</td>
|
521 |
+
<td class="delim"> </td>
|
522 |
+
<td><select id="border_style_right" name="border_style_right" class="mceEditableSelect" disabled="disabled"></select></td>
|
523 |
+
<td class="delim"> </td>
|
524 |
+
<td>
|
525 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
526 |
+
<tr>
|
527 |
+
<td><select id="border_width_right" name="border_width_right" class="mceEditableSelect" disabled="disabled"></select></td>
|
528 |
+
<td> </td>
|
529 |
+
<td>
|
530 |
+
<label id="border_width_right_measurement_label" for="border_width_right_measurement" style="display: none; visibility: hidden;">Width Right Measurement Unit</label>
|
531 |
+
<select id="border_width_right_measurement" name="border_width_right_measurement" disabled="disabled" aria-labelledby="border_width_right_measurement_label"></select>
|
532 |
+
</td>
|
533 |
+
</tr>
|
534 |
+
</table>
|
535 |
+
</td>
|
536 |
+
<td class="delim"> </td>
|
537 |
+
<td>
|
538 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
539 |
+
<tr>
|
540 |
+
<td><input id="border_color_right" name="border_color_right" type="text" value="" size="9" onChange="updateColor('border_color_right_pick','border_color_right');" disabled="disabled" /></td>
|
541 |
+
<td id="border_color_right_pickcontainer"> </td>
|
542 |
+
</tr>
|
543 |
+
</table>
|
544 |
+
</td>
|
545 |
+
</tr>
|
546 |
+
|
547 |
+
<tr>
|
548 |
+
<td>{#style_dlg.bottom}</td>
|
549 |
+
<td class="delim"> </td>
|
550 |
+
<td><select id="border_style_bottom" name="border_style_bottom" class="mceEditableSelect" disabled="disabled"></select></td>
|
551 |
+
<td class="delim"> </td>
|
552 |
+
<td>
|
553 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
554 |
+
<tr>
|
555 |
+
<td><select id="border_width_bottom" name="border_width_bottom" class="mceEditableSelect" disabled="disabled"></select></td>
|
556 |
+
<td> </td>
|
557 |
+
<td>
|
558 |
+
<label id="border_width_bottom_measurement_label" for="border_width_bottom_measurement" style="display: none; visibility: hidden;">Width Bottom Measurement Unit</label>
|
559 |
+
<select id="border_width_bottom_measurement" name="border_width_bottom_measurement" disabled="disabled" aria-labelledby="border_width_bottom_measurement_label"></select>
|
560 |
+
</td>
|
561 |
+
</tr>
|
562 |
+
</table>
|
563 |
+
</td>
|
564 |
+
<td class="delim"> </td>
|
565 |
+
<td>
|
566 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
567 |
+
<tr>
|
568 |
+
<td><input id="border_color_bottom" name="border_color_bottom" type="text" value="" size="9" onChange="updateColor('border_color_bottom_pick','border_color_bottom');" disabled="disabled" /></td>
|
569 |
+
<td id="border_color_bottom_pickcontainer"> </td>
|
570 |
+
</tr>
|
571 |
+
</table>
|
572 |
+
</td>
|
573 |
+
</tr>
|
574 |
+
|
575 |
+
<tr>
|
576 |
+
<td>{#style_dlg.left}</td>
|
577 |
+
<td class="delim"> </td>
|
578 |
+
<td><select id="border_style_left" name="border_style_left" class="mceEditableSelect" disabled="disabled"></select></td>
|
579 |
+
<td class="delim"> </td>
|
580 |
+
<td>
|
581 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
582 |
+
<tr>
|
583 |
+
<td><select id="border_width_left" name="border_width_left" class="mceEditableSelect" disabled="disabled"></select></td>
|
584 |
+
<td> </td>
|
585 |
+
<td>
|
586 |
+
<label id="border_width_left_measurement_label" for="border_width_left_measurement" style="display: none; visibility: hidden;">Width Left Measurement Unit</label>
|
587 |
+
<select id="border_width_left_measurement" name="border_width_left_measurement" disabled="disabled" aria-labelledby="border_width_left_measurement_label"></select>
|
588 |
+
</td>
|
589 |
+
</tr>
|
590 |
+
</table>
|
591 |
+
</td>
|
592 |
+
<td class="delim"> </td>
|
593 |
+
<td>
|
594 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
595 |
+
<tr>
|
596 |
+
<td><input id="border_color_left" name="border_color_left" type="text" value="" size="9" onChange="updateColor('border_color_left_pick','border_color_left');" disabled="disabled" /></td>
|
597 |
+
<td id="border_color_left_pickcontainer"> </td>
|
598 |
+
</tr>
|
599 |
+
</table>
|
600 |
+
</td>
|
601 |
+
</tr>
|
602 |
</table>
|
603 |
+
</fieldset>
|
|
|
|
|
604 |
</div>
|
605 |
|
606 |
<div id="list_panel" class="panel">
|
607 |
+
<fieldset>
|
608 |
+
<legend>{#style_dlg.list}</legend>
|
609 |
+
<table role="presentation" border="0">
|
610 |
<tr>
|
611 |
<td><label for="list_type">{#style_dlg.list_type}</label></td>
|
612 |
<td><select id="list_type" name="list_type" class="mceEditableSelect"></select></td>
|
622 |
<td><select id="list_position" name="list_position" class="mceEditableSelect"></select></td>
|
623 |
</tr>
|
624 |
</table>
|
625 |
+
</fieldset>
|
626 |
</div>
|
627 |
|
628 |
<div id="positioning_panel" class="panel">
|
629 |
+
<fieldset>
|
630 |
+
<legend>{#style_dlg.position}</legend>
|
631 |
+
<table role="presentation" border="0">
|
632 |
<tr>
|
633 |
<td><label for="positioning_type">{#style_dlg.positioning_type}</label></td>
|
634 |
<td><select id="positioning_type" name="positioning_type" class="mceEditableSelect"></select></td>
|
639 |
<tr>
|
640 |
<td><label for="positioning_width">{#style_dlg.width}</label></td>
|
641 |
<td>
|
642 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
643 |
<tr>
|
644 |
<td><input type="text" id="positioning_width" name="positioning_width" onChange="synch('positioning_width','box_width');" /></td>
|
645 |
<td> </td>
|
646 |
+
<td>
|
647 |
+
<label id="positioning_width_measurement_label" for="positioning_width_measurement" style="display: none; visibility: hidden;">Positioning width Measurement Unit</label>
|
648 |
+
<select id="positioning_width_measurement" name="positioning_width_measurement" aria-labelledby="positioning_width_measurement_label"></select>
|
649 |
+
</td>
|
650 |
</tr>
|
651 |
</table>
|
652 |
</td>
|
657 |
<tr>
|
658 |
<td><label for="positioning_height">{#style_dlg.height}</label></td>
|
659 |
<td>
|
660 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
661 |
<tr>
|
662 |
<td><input type="text" id="positioning_height" name="positioning_height" onChange="synch('positioning_height','box_height');" /></td>
|
663 |
<td> </td>
|
664 |
+
<td>
|
665 |
+
<label id="positioning_height_measurement_label" for="positioning_height_measurement" style="display: none; visibility: hidden;">Positioning Height Measurement Unit</label>
|
666 |
+
<select id="positioning_height_measurement" name="positioning_height_measurement" aria-labelledby="positioning_height_measurement_label"></select>
|
667 |
+
</td>
|
668 |
</tr>
|
669 |
</table>
|
670 |
</td>
|
677 |
<fieldset>
|
678 |
<legend>{#style_dlg.placement}</legend>
|
679 |
|
680 |
+
<table role="presentation" border="0">
|
681 |
<tr>
|
682 |
<td> </td>
|
683 |
<td><input type="checkbox" id="positioning_placement_same" name="positioning_placement_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_placement');" /> <label for="positioning_placement_same">{#style_dlg.same}</label></td>
|
685 |
<tr>
|
686 |
<td>{#style_dlg.top}</td>
|
687 |
<td>
|
688 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
689 |
<tr>
|
690 |
<td><input type="text" id="positioning_placement_top" name="positioning_placement_top" /></td>
|
691 |
<td> </td>
|
692 |
+
<td>
|
693 |
+
<label id="positioning_placement_top_measurement_label" for="positioning_placement_top_measurement" style="display: none; visibility: hidden;">Placement Top Measurement Unit</label>
|
694 |
+
<select id="positioning_placement_top_measurement" name="positioning_placement_top_measurement" aria-labelledby="positioning_placement_top_measurement_label"></select>
|
695 |
+
</td>
|
696 |
</tr>
|
697 |
</table>
|
698 |
</td>
|
700 |
<tr>
|
701 |
<td>{#style_dlg.right}</td>
|
702 |
<td>
|
703 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
704 |
<tr>
|
705 |
<td><input type="text" id="positioning_placement_right" name="positioning_placement_right" disabled="disabled" /></td>
|
706 |
<td> </td>
|
707 |
+
<td>
|
708 |
+
<label id="positioning_placement_right_measurement_label" for="positioning_placement_right_measurement" style="display: none; visibility: hidden;">Placement Right Measurement Unit</label>
|
709 |
+
<select id="positioning_placement_right_measurement" name="positioning_placement_right_measurement" disabled="disabled" aria-labelledby="positioning_placement_right_measurement_label"></select>
|
710 |
+
</td>
|
711 |
</tr>
|
712 |
</table>
|
713 |
</td>
|
715 |
<tr>
|
716 |
<td>{#style_dlg.bottom}</td>
|
717 |
<td>
|
718 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
719 |
<tr>
|
720 |
<td><input type="text" id="positioning_placement_bottom" name="positioning_placement_bottom" disabled="disabled" /></td>
|
721 |
<td> </td>
|
722 |
+
<td>
|
723 |
+
<label id="positioning_placement_bottom_measurement_label" for="positioning_placement_bottom_measurement" style="display: none; visibility: hidden;">Placement Bottom Measurement Unit</label>
|
724 |
+
<select id="positioning_placement_bottom_measurement" name="positioning_placement_bottom_measurement" disabled="disabled" aria-labelledby="positioning_placement_bottom_measurement_label"></select>
|
725 |
+
</td>
|
726 |
</tr>
|
727 |
</table>
|
728 |
</td>
|
730 |
<tr>
|
731 |
<td>{#style_dlg.left}</td>
|
732 |
<td>
|
733 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
734 |
<tr>
|
735 |
<td><input type="text" id="positioning_placement_left" name="positioning_placement_left" disabled="disabled" /></td>
|
736 |
<td> </td>
|
737 |
+
<td>
|
738 |
+
<label id="positioning_placement_left_measurement_label" for="positioning_placement_left_measurement" style="display: none; visibility: hidden;">Placement Left Measurement Unit</label>
|
739 |
+
<select id="positioning_placement_left_measurement" name="positioning_placement_left_measurement" disabled="disabled" aria-labelledby="positioning_placement_left_measurement_label"></select>
|
740 |
+
</td>
|
741 |
</tr>
|
742 |
</table>
|
743 |
</td>
|
750 |
<fieldset>
|
751 |
<legend>{#style_dlg.clip}</legend>
|
752 |
|
753 |
+
<table role="presentation" border="0">
|
754 |
<tr>
|
755 |
<td> </td>
|
756 |
<td><input type="checkbox" id="positioning_clip_same" name="positioning_clip_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_clip');" /> <label for="positioning_clip_same">{#style_dlg.same}</label></td>
|
758 |
<tr>
|
759 |
<td>{#style_dlg.top}</td>
|
760 |
<td>
|
761 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
762 |
<tr>
|
763 |
<td><input type="text" id="positioning_clip_top" name="positioning_clip_top" /></td>
|
764 |
<td> </td>
|
765 |
+
<td>
|
766 |
+
<label id="positioning_clip_top_measurement_label" for="positioning_clip_top_measurement" style="display: none; visibility: hidden;">Clip Top Measurement Unit</label>
|
767 |
+
<select id="positioning_clip_top_measurement" name="positioning_clip_top_measurement" aria-labelledby="positioning_clip_top_measurement_label"></select>
|
768 |
+
</td>
|
769 |
</tr>
|
770 |
</table>
|
771 |
</td>
|
773 |
<tr>
|
774 |
<td>{#style_dlg.right}</td>
|
775 |
<td>
|
776 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
777 |
<tr>
|
778 |
<td><input type="text" id="positioning_clip_right" name="positioning_clip_right" disabled="disabled" /></td>
|
779 |
<td> </td>
|
780 |
+
<td>
|
781 |
+
<label id="positioning_clip_right_measurement_label" for="positioning_clip_right_measurement" style="display: none; visibility: hidden;">Clip Right Measurement Unit</label>
|
782 |
+
<select id="positioning_clip_right_measurement" name="positioning_clip_right_measurement" disabled="disabled" aria-labelledby="positioning_clip_right_measurement_label"></select>
|
783 |
+
</td>
|
784 |
</tr>
|
785 |
</table>
|
786 |
</td>
|
788 |
<tr>
|
789 |
<td>{#style_dlg.bottom}</td>
|
790 |
<td>
|
791 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
792 |
<tr>
|
793 |
<td><input type="text" id="positioning_clip_bottom" name="positioning_clip_bottom" disabled="disabled" /></td>
|
794 |
<td> </td>
|
795 |
+
<td>
|
796 |
+
<label id="positioning_clip_bottom_measurement_label" for="positioning_clip_bottom_measurement" style="display: none; visibility: hidden;">Clip Bottom Measurement Unit</label>
|
797 |
+
<select id="positioning_clip_bottom_measurement" name="positioning_clip_bottom_measurement" disabled="disabled" aria-labelledby="positioning_clip_bottom_measurement_label"></select>
|
798 |
+
</td>
|
799 |
</tr>
|
800 |
</table>
|
801 |
</td>
|
803 |
<tr>
|
804 |
<td>{#style_dlg.left}</td>
|
805 |
<td>
|
806 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
807 |
<tr>
|
808 |
<td><input type="text" id="positioning_clip_left" name="positioning_clip_left" disabled="disabled" /></td>
|
809 |
<td> </td>
|
810 |
+
<td>
|
811 |
+
<label id="positioning_clip_left_measurement_label" for="positioning_clip_left_measurement" style="display: none; visibility: hidden;">Clip Left Measurement Unit</label>
|
812 |
+
<select id="positioning_clip_left_measurement" name="positioning_clip_left_measurement" disabled="disabled" aria-labelledby="positioning_clip_left_measurement_label"></select>
|
813 |
+
</td>
|
814 |
</tr>
|
815 |
</table>
|
816 |
</td>
|
820 |
</div>
|
821 |
<br style="clear: both" />
|
822 |
</div>
|
823 |
+
</fieldset>
|
824 |
</div>
|
825 |
|
826 |
<div class="mceActionPanel">
|
827 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
828 |
+
<input type="button" class="button" id="apply" name="apply" value="{#style_dlg.apply}" onClick="applyAction();" />
|
829 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onClick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
830 |
</div>
|
831 |
</form>
|
832 |
|
mce/table/cell.htm
CHANGED
@@ -2,19 +2,19 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.cell_title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js
|
9 |
-
<script type="text/javascript" src="js/cell.js
|
10 |
-
<link href="css/cell.css
|
11 |
</head>
|
12 |
-
<body id="tablecell" style="display: none">
|
13 |
<form onsubmit="updateAction();return false;" action="#">
|
14 |
<div class="tabs">
|
15 |
<ul>
|
16 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
17 |
-
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
@@ -23,7 +23,7 @@
|
|
23 |
<fieldset>
|
24 |
<legend>{#table_dlg.general_props}</legend>
|
25 |
|
26 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
27 |
<tr>
|
28 |
<td><label for="align">{#table_dlg.align}</label></td>
|
29 |
<td>
|
@@ -92,7 +92,7 @@
|
|
92 |
<fieldset>
|
93 |
<legend>{#table_dlg.advanced_props}</legend>
|
94 |
|
95 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
96 |
<tr>
|
97 |
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
98 |
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
@@ -124,7 +124,7 @@
|
|
124 |
<tr>
|
125 |
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
126 |
<td>
|
127 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
128 |
<tr>
|
129 |
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
130 |
<td id="backgroundimagebrowsercontainer"> </td>
|
@@ -133,10 +133,10 @@
|
|
133 |
</td>
|
134 |
</tr>
|
135 |
|
136 |
-
<tr>
|
137 |
-
<td class="column1"><label for="bordercolor">{#table_dlg.bordercolor}</label></td>
|
138 |
<td>
|
139 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
140 |
<tr>
|
141 |
<td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
|
142 |
<td id="bordercolor_pickcontainer"> </td>
|
@@ -145,10 +145,10 @@
|
|
145 |
</td>
|
146 |
</tr>
|
147 |
|
148 |
-
<tr>
|
149 |
-
<td class="column1"><label for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
150 |
<td>
|
151 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
152 |
<tr>
|
153 |
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
154 |
<td id="bgcolor_pickcontainer"> </td>
|
@@ -170,13 +170,8 @@
|
|
170 |
</select>
|
171 |
</div>
|
172 |
|
173 |
-
<
|
174 |
-
|
175 |
-
</div>
|
176 |
-
|
177 |
-
<div style="float: right">
|
178 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
179 |
-
</div>
|
180 |
</div>
|
181 |
</form>
|
182 |
</body>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.cell_title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js"></script>
|
9 |
+
<script type="text/javascript" src="js/cell.js"></script>
|
10 |
+
<link href="css/cell.css" rel="stylesheet" type="text/css" />
|
11 |
</head>
|
12 |
+
<body id="tablecell" style="display: none" role="application">
|
13 |
<form onsubmit="updateAction();return false;" action="#">
|
14 |
<div class="tabs">
|
15 |
<ul>
|
16 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
17 |
+
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
23 |
<fieldset>
|
24 |
<legend>{#table_dlg.general_props}</legend>
|
25 |
|
26 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
27 |
<tr>
|
28 |
<td><label for="align">{#table_dlg.align}</label></td>
|
29 |
<td>
|
92 |
<fieldset>
|
93 |
<legend>{#table_dlg.advanced_props}</legend>
|
94 |
|
95 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
96 |
<tr>
|
97 |
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
98 |
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
124 |
<tr>
|
125 |
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
126 |
<td>
|
127 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
128 |
<tr>
|
129 |
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
130 |
<td id="backgroundimagebrowsercontainer"> </td>
|
133 |
</td>
|
134 |
</tr>
|
135 |
|
136 |
+
<tr role="group" aria-labelledby="bordercolor_label">
|
137 |
+
<td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td>
|
138 |
<td>
|
139 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
140 |
<tr>
|
141 |
<td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
|
142 |
<td id="bordercolor_pickcontainer"> </td>
|
145 |
</td>
|
146 |
</tr>
|
147 |
|
148 |
+
<tr role="group" aria-labelledby="bgcolor_label">
|
149 |
+
<td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
150 |
<td>
|
151 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
152 |
<tr>
|
153 |
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
154 |
<td id="bgcolor_pickcontainer"> </td>
|
170 |
</select>
|
171 |
</div>
|
172 |
|
173 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
174 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
175 |
</div>
|
176 |
</form>
|
177 |
</body>
|
mce/table/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(c){var d=c.each;function b(f,g){var h=g.ownerDocument,e=h.createRange(),j;e.setStartBefore(g);e.setEnd(f.endContainer,f.endOffset);j=h.createElement("body");j.appendChild(e.cloneContents());return j.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}function a(G,F,J){var f,K,C,o;s();o=F.getParent(J.getStart(),"th,td");if(o){K=E(o);C=H();o=w(K.x,K.y)}function z(M,L){M=M.cloneNode(L);M.removeAttribute("id");return M}function s(){var L=0;f=[];d(["thead","tbody","tfoot"],function(M){var N=F.select("> "+M+" tr",G);d(N,function(O,P){P+=L;d(F.select("> td, > th",O),function(V,Q){var R,S,T,U;if(f[P]){while(f[P][Q]){Q++}}T=h(V,"rowspan");U=h(V,"colspan");for(S=P;S<P+T;S++){if(!f[S]){f[S]=[]}for(R=Q;R<Q+U;R++){f[S][R]={part:M,real:S==P&&R==Q,elm:V,rowspan:T,colspan:U}}}})});L+=N.length})}function w(L,N){var M;M=f[N];if(M){return M[L]}}function h(M,L){return parseInt(M.getAttribute(L)||1)}function j(L){return F.hasClass(L.elm,"mceSelected")||L==o}function k(){var L=[];d(G.rows,function(M){d(M.cells,function(N){if(F.hasClass(N,"mceSelected")||N==o.elm){L.push(M);return false}})});return L}function r(){var L=F.createRng();L.setStartAfter(G);L.setEndAfter(G);J.setRng(L);F.remove(G)}function e(L){var M;c.walk(L,function(O){var N;if(O.nodeType==3){d(F.getParents(O.parentNode,null,L).reverse(),function(P){P=z(P,false);if(!M){M=N=P}else{if(N){N.appendChild(P)}}N=P});if(N){N.innerHTML=c.isIE?" ":'<br _mce_bogus="1" />'}return false}},"childNodes");L=z(L,false);L.rowSpan=L.colSpan=1;if(M){L.appendChild(M)}else{if(!c.isIE){L.innerHTML='<br _mce_bogus="1" />'}}return L}function q(){var L=F.createRng();d(F.select("tr",G),function(M){if(M.cells.length==0){F.remove(M)}});if(F.select("tr",G).length==0){L.setStartAfter(G);L.setEndAfter(G);J.setRng(L);F.remove(G);return}d(F.select("thead,tbody,tfoot",G),function(M){if(M.rows.length==0){F.remove(M)}});s();row=f[Math.min(f.length-1,K.y)];if(row){J.select(row[Math.min(row.length-1,K.x)].elm,true);J.collapse(true)}}function t(R,P,T,Q){var O,M,L,N,S;O=f[P][R].elm.parentNode;for(L=1;L<=T;L++){O=F.getNext(O,"tr");if(O){for(M=R;M>=0;M--){S=f[P+L][M].elm;if(S.parentNode==O){for(N=1;N<=Q;N++){F.insertAfter(e(S),S)}break}}if(M==-1){for(N=1;N<=Q;N++){O.insertBefore(e(O.cells[0]),O.cells[0])}}}}}function B(){d(f,function(L,M){d(L,function(O,N){var R,Q,S,P;if(j(O)){O=O.elm;R=h(O,"colspan");Q=h(O,"rowspan");if(R>1||Q>1){O.colSpan=O.rowSpan=1;for(P=0;P<R-1;P++){F.insertAfter(e(O),O)}t(N,M,Q-1,R)}}})})}function p(T,Q,W){var O,N,V,U,S,P,R,L,T,M;if(T){pos=E(T);O=pos.x;N=pos.y;V=O+(Q-1);U=N+(W-1)}else{O=K.x;N=K.y;V=C.x;U=C.y}R=w(O,N);L=w(V,U);if(R&&L&&R.part==L.part){B();s();R=w(O,N).elm;R.colSpan=(V-O)+1;R.rowSpan=(U-N)+1;for(P=N;P<=U;P++){for(S=O;S<=V;S++){T=f[P][S].elm;if(T!=R){M=c.grep(T.childNodes);d(M,function(Y,X){if(Y.nodeName!="BR"||X!=M.length-1){R.appendChild(Y)}});F.remove(T)}}}q()}}function l(O){var L,Q,N,P,R,S,M,T;d(f,function(U,V){d(U,function(X,W){if(j(X)){X=X.elm;R=X.parentNode;S=z(R,false);L=V;if(O){return false}}});if(O){return !L}});for(P=0;P<f[0].length;P++){Q=f[L][P].elm;if(Q!=N){if(!O){rowSpan=h(Q,"rowspan");if(rowSpan>1){Q.rowSpan=rowSpan+1;continue}}else{if(L>0&&f[L-1][P]){T=f[L-1][P].elm;rowSpan=h(T,"rowspan");if(rowSpan>1){T.rowSpan=rowSpan+1;continue}}}M=e(Q);M.colSpan=Q.colSpan;S.appendChild(M);N=Q}}if(S.hasChildNodes()){if(!O){F.insertAfter(S,R)}else{R.parentNode.insertBefore(S,R)}}}function g(M){var N,L;d(f,function(O,P){d(O,function(R,Q){if(j(R)){N=Q;if(M){return false}}});if(M){return !N}});d(f,function(R,S){var O=R[N].elm,P,Q;if(O!=L){Q=h(O,"colspan");P=h(O,"rowspan");if(Q==1){if(!M){F.insertAfter(e(O),O);t(N,S,P-1,Q)}else{O.parentNode.insertBefore(e(O),O);t(N,S,P-1,Q)}}else{O.colSpan++}L=O}})}function n(){var L=[];d(f,function(M,N){d(M,function(P,O){if(j(P)&&c.inArray(L,O)===-1){d(f,function(S){var Q=S[O].elm,R;R=h(Q,"colspan");if(R>1){Q.colSpan=R-1}else{F.remove(Q)}});L.push(O)}})});q()}function m(){var M;function L(P){var O,Q,N;O=F.getNext(P,"tr");d(P.cells,function(R){var S=h(R,"rowspan");if(S>1){R.rowSpan=S-1;Q=E(R);t(Q.x,Q.y,1,1)}});Q=E(P.cells[0]);d(f[Q.y],function(R){var S;R=R.elm;if(R!=N){S=h(R,"rowspan");if(S<=1){F.remove(R)}else{R.rowSpan=S-1}N=R}})}M=k();d(M.reverse(),function(N){L(N)});q()}function D(){var L=k();F.remove(L);q();return L}function I(){var L=k();d(L,function(N,M){L[M]=z(N,true)});return L}function A(N,M){var O=k(),L=O[M?0:O.length-1],P=L.cells.length;d(f,function(R){var Q;P=0;d(R,function(T,S){if(T.real){P+=T.colspan}if(T.elm.parentNode==L){Q=1}});if(Q){return false}});if(!M){N.reverse()}d(N,function(S){var R=S.cells.length,Q;for(i=0;i<R;i++){Q=S.cells[i];Q.colSpan=Q.rowSpan=1}for(i=R;i<P;i++){S.appendChild(e(S.cells[R-1]))}for(i=P;i<R;i++){F.remove(S.cells[i])}if(M){L.parentNode.insertBefore(S,L)}else{F.insertAfter(S,L)}})}function E(L){var M;d(f,function(N,O){d(N,function(Q,P){if(Q.elm==L){M={x:P,y:O};return false}});return !M});return M}function v(L){K=E(L)}function H(){var N,M,L;M=L=0;d(f,function(O,P){d(O,function(R,Q){var T,S;if(j(R)){R=f[P][Q];if(Q>M){M=Q}if(P>L){L=P}if(R.real){T=R.colspan-1;S=R.rowspan-1;if(T){if(Q+T>M){M=Q+T}}if(S){if(P+S>L){L=P+S}}}}})});return{x:M,y:L}}function u(R){var O,N,T,S,M,L,P,Q;C=E(R);if(K&&C){O=Math.min(K.x,C.x);N=Math.min(K.y,C.y);T=Math.max(K.x,C.x);S=Math.max(K.y,C.y);M=T;L=S;for(y=N;y<=L;y++){R=f[y][O];if(!R.real){if(O-(R.colspan-1)<O){O-=R.colspan-1}}}for(x=O;x<=M;x++){R=f[N][x];if(!R.real){if(N-(R.rowspan-1)<N){N-=R.rowspan-1}}}for(y=N;y<=S;y++){for(x=O;x<=T;x++){R=f[y][x];if(R.real){P=R.colspan-1;Q=R.rowspan-1;if(P){if(x+P>M){M=x+P}}if(Q){if(y+Q>L){L=y+Q}}}}}F.removeClass(F.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=N;y<=L;y++){for(x=O;x<=M;x++){F.addClass(f[y][x].elm,"mceSelected")}}}}c.extend(this,{deleteTable:r,split:B,merge:p,insertRow:l,insertCol:g,deleteCols:n,deleteRows:m,cutRows:D,copyRows:I,pasteRows:A,getPos:E,setStartCell:v,setEndCell:u})}c.create("tinymce.plugins.TablePlugin",{init:function(f,g){var e,k;function j(n){var m=f.selection,l=f.dom.getParent(n||m.getNode(),"table");if(l){return new a(l,f.dom,m)}}function h(){f.getBody().style.webkitUserSelect="";f.dom.removeClass(f.dom.select("td.mceSelected,th.mceSelected"),"mceSelected")}d([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(l){f.addButton(l[0],{title:l[1],cmd:l[2],ui:l[3]})});if(!c.isIE){f.onClick.add(function(l,m){m=m.target;if(m.nodeName==="TABLE"){l.selection.select(m)}})}f.onNodeChange.add(function(m,l,q){var o;q=m.selection.getStart();o=m.dom.getParent(q,"td,th,caption");l.setActive("table",q.nodeName==="TABLE"||!!o);if(o&&o.nodeName==="CAPTION"){o=0}l.setDisabled("delete_table",!o);l.setDisabled("delete_col",!o);l.setDisabled("delete_table",!o);l.setDisabled("delete_row",!o);l.setDisabled("col_after",!o);l.setDisabled("col_before",!o);l.setDisabled("row_after",!o);l.setDisabled("row_before",!o);l.setDisabled("row_props",!o);l.setDisabled("cell_props",!o);l.setDisabled("split_cells",!o);l.setDisabled("merge_cells",!o)});f.onInit.add(function(m){var l,p,q=m.dom,n;e=m.windowManager;m.onMouseDown.add(function(r,s){if(s.button!=2){h();p=q.getParent(s.target,"td,th");l=q.getParent(p,"table")}});q.bind(m.getDoc(),"mouseover",function(u){var s,r,t=u.target;if(p&&(n||t!=p)&&(t.nodeName=="TD"||t.nodeName=="TH")){r=q.getParent(t,"table");if(r==l){if(!n){n=j(r);n.setStartCell(p);m.getBody().style.webkitUserSelect="none"}n.setEndCell(t)}s=m.selection.getSel();if(s.removeAllRanges){s.removeAllRanges()}else{s.empty()}u.preventDefault()}});m.onMouseUp.add(function(A,B){var s,u=A.selection,C,D=u.getSel(),r,v,t,z;if(p){if(n){A.getBody().style.webkitUserSelect=""}function w(E,G){var F=new c.dom.TreeWalker(E,E);do{if(E.nodeType==3&&c.trim(E.nodeValue).length!=0){if(G){s.setStart(E,0)}else{s.setEnd(E,E.nodeValue.length)}return}if(E.nodeName=="BR"){if(G){s.setStartBefore(E)}else{s.setEndBefore(E)}return}}while(E=(G?F.next():F.prev()))}C=q.select("td.mceSelected,th.mceSelected");if(C.length>0){s=q.createRng();v=C[0];z=C[C.length-1];w(v,1);r=new c.dom.TreeWalker(v,q.getParent(C[0],"table"));do{if(v.nodeName=="TD"||v.nodeName=="TH"){if(!q.hasClass(v,"mceSelected")){break}t=v}}while(v=r.next());w(t);u.setRng(s)}A.nodeChanged();p=n=l=null}});m.onKeyUp.add(function(r,s){h()});if(m&&m.plugins.contextmenu){m.plugins.contextmenu.onContextMenu.add(function(t,r,v){var w,u=m.selection,s=u.getNode()||m.getBody();if(m.dom.getParent(v,"td")||m.dom.getParent(v,"th")||m.dom.select("td.mceSelected,th.mceSelected").length){r.removeAll();if(s.nodeName=="A"&&!m.dom.getAttrib(s,"name")){r.add({title:"advanced.link_desc",icon:"link",cmd:m.plugins.advlink?"mceAdvLink":"mceLink",ui:true});r.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});r.addSeparator()}if(s.nodeName=="IMG"&&s.className.indexOf("mceItem")==-1){r.add({title:"advanced.image_desc",icon:"image",cmd:m.plugins.advimage?"mceAdvImage":"mceImage",ui:true});r.addSeparator()}r.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});r.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});r.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});r.addSeparator();w=r.addMenu({title:"table.cell"});w.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});w.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});w.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});w=r.addMenu({title:"table.row"});w.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});w.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});w.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});w.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});w.addSeparator();w.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});w.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});w.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!k);w.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!k);w=r.addMenu({title:"table.col"});w.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});w.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});w.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{r.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(!c.isIE){function o(){var r;for(r=m.getBody().lastChild;r&&r.nodeType==3&&!r.nodeValue.length;r=r.previousSibling){}if(r&&r.nodeName=="TABLE"){m.dom.add(m.getBody(),"p",null,'<br mce_bogus="1" />')}}if(c.isGecko){m.onKeyDown.add(function(s,u){var r,t,v=s.dom;if(u.keyCode==37||u.keyCode==38){r=s.selection.getRng();t=v.getParent(r.startContainer,"table");if(t&&s.getBody().firstChild==t){if(b(r,t)){r=v.createRng();r.setStartBefore(t);r.setEndBefore(t);s.selection.setRng(r);u.preventDefault()}}}})}m.onKeyUp.add(o);m.onSetContent.add(o);m.onVisualAid.add(o);m.onPreProcess.add(function(r,t){var s=t.node.lastChild;if(s&&s.childNodes.length==1&&s.firstChild.nodeName=="BR"){r.dom.remove(s)}});o()}});d({mceTableSplitCells:function(l){l.split()},mceTableMergeCells:function(m){var n,o,l;l=f.dom.getParent(f.selection.getNode(),"th,td");if(l){n=l.rowSpan;o=l.colSpan}if(!f.dom.select("td.mceSelected,th.mceSelected").length){e.open({url:g+"/merge_cells.htm",width:240+parseInt(f.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(f.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:n,cols:o,onaction:function(p){m.merge(l,p.cols,p.rows)},plugin_url:g})}else{m.merge()}},mceTableInsertRowBefore:function(l){l.insertRow(true)},mceTableInsertRowAfter:function(l){l.insertRow()},mceTableInsertColBefore:function(l){l.insertCol(true)},mceTableInsertColAfter:function(l){l.insertCol()},mceTableDeleteCol:function(l){l.deleteCols()},mceTableDeleteRow:function(l){l.deleteRows()},mceTableCutRow:function(l){k=l.cutRows()},mceTableCopyRow:function(l){k=l.copyRows()},mceTablePasteRowBefore:function(l){l.pasteRows(k,true)},mceTablePasteRowAfter:function(l){l.pasteRows(k)},mceTableDelete:function(l){l.deleteTable()}},function(m,l){f.addCommand(l,function(){var n=j();if(n){m(n);f.execCommand("mceRepaint");h()}})});d({mceInsertTable:function(l){e.open({url:g+"/table.htm",width:400+parseInt(f.getLang("table.table_delta_width",0)),height:320+parseInt(f.getLang("table.table_delta_height",0)),inline:1},{plugin_url:g,action:l?l.action:0})},mceTableRowProps:function(){e.open({url:g+"/row.htm",width:400+parseInt(f.getLang("table.rowprops_delta_width",0)),height:295+parseInt(f.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:g})},mceTableCellProps:function(){e.open({url:g+"/cell.htm",width:400+parseInt(f.getLang("table.cellprops_delta_width",0)),height:295+parseInt(f.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:g})}},function(m,l){f.addCommand(l,function(n,o){m(o)})})}});c.PluginManager.add("table",c.plugins.TablePlugin)})(tinymce);
|
1 |
+
(function(c){var d=c.each;function b(f,g){var h=g.ownerDocument,e=h.createRange(),j;e.setStartBefore(g);e.setEnd(f.endContainer,f.endOffset);j=h.createElement("body");j.appendChild(e.cloneContents());return j.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}function a(H,G,K){var f,L,D,o;t();o=G.getParent(K.getStart(),"th,td");if(o){L=F(o);D=I();o=z(L.x,L.y)}function A(N,M){N=N.cloneNode(M);N.removeAttribute("id");return N}function t(){var M=0;f=[];d(["thead","tbody","tfoot"],function(N){var O=G.select("> "+N+" tr",H);d(O,function(P,Q){Q+=M;d(G.select("> td, > th",P),function(W,R){var S,T,U,V;if(f[Q]){while(f[Q][R]){R++}}U=h(W,"rowspan");V=h(W,"colspan");for(T=Q;T<Q+U;T++){if(!f[T]){f[T]=[]}for(S=R;S<R+V;S++){f[T][S]={part:N,real:T==Q&&S==R,elm:W,rowspan:U,colspan:V}}}})});M+=O.length})}function z(M,O){var N;N=f[O];if(N){return N[M]}}function h(N,M){return parseInt(N.getAttribute(M)||1)}function s(O,M,N){if(O){N=parseInt(N);if(N===1){O.removeAttribute(M,1)}else{O.setAttribute(M,N,1)}}}function j(M){return M&&(G.hasClass(M.elm,"mceSelected")||M==o)}function k(){var M=[];d(H.rows,function(N){d(N.cells,function(O){if(G.hasClass(O,"mceSelected")||O==o.elm){M.push(N);return false}})});return M}function r(){var M=G.createRng();M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H)}function e(M){var N;c.walk(M,function(P){var O;if(P.nodeType==3){d(G.getParents(P.parentNode,null,M).reverse(),function(Q){Q=A(Q,false);if(!N){N=O=Q}else{if(O){O.appendChild(Q)}}O=Q});if(O){O.innerHTML=c.isIE?" ":'<br data-mce-bogus="1" />'}return false}},"childNodes");M=A(M,false);s(M,"rowSpan",1);s(M,"colSpan",1);if(N){M.appendChild(N)}else{if(!c.isIE){M.innerHTML='<br data-mce-bogus="1" />'}}return M}function q(){var M=G.createRng();d(G.select("tr",H),function(N){if(N.cells.length==0){G.remove(N)}});if(G.select("tr",H).length==0){M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H);return}d(G.select("thead,tbody,tfoot",H),function(N){if(N.rows.length==0){G.remove(N)}});t();row=f[Math.min(f.length-1,L.y)];if(row){K.select(row[Math.min(row.length-1,L.x)].elm,true);K.collapse(true)}}function u(S,Q,U,R){var P,N,M,O,T;P=f[Q][S].elm.parentNode;for(M=1;M<=U;M++){P=G.getNext(P,"tr");if(P){for(N=S;N>=0;N--){T=f[Q+M][N].elm;if(T.parentNode==P){for(O=1;O<=R;O++){G.insertAfter(e(T),T)}break}}if(N==-1){for(O=1;O<=R;O++){P.insertBefore(e(P.cells[0]),P.cells[0])}}}}}function C(){d(f,function(M,N){d(M,function(P,O){var S,R,T,Q;if(j(P)){P=P.elm;S=h(P,"colspan");R=h(P,"rowspan");if(S>1||R>1){s(P,"rowSpan",1);s(P,"colSpan",1);for(Q=0;Q<S-1;Q++){G.insertAfter(e(P),P)}u(O,N,R-1,S)}}})})}function p(V,S,Y){var P,O,X,W,U,R,T,M,V,N,Q;if(V){pos=F(V);P=pos.x;O=pos.y;X=P+(S-1);W=O+(Y-1)}else{P=L.x;O=L.y;X=D.x;W=D.y}T=z(P,O);M=z(X,W);if(T&&M&&T.part==M.part){C();t();T=z(P,O).elm;s(T,"colSpan",(X-P)+1);s(T,"rowSpan",(W-O)+1);for(R=O;R<=W;R++){for(U=P;U<=X;U++){if(!f[R]||!f[R][U]){continue}V=f[R][U].elm;if(V!=T){N=c.grep(V.childNodes);d(N,function(Z){T.appendChild(Z)});if(N.length){N=c.grep(T.childNodes);Q=0;d(N,function(Z){if(Z.nodeName=="BR"&&G.getAttrib(Z,"data-mce-bogus")&&Q++<N.length-1){T.removeChild(Z)}})}G.remove(V)}}}q()}}function l(Q){var M,S,P,R,T,U,N,V,O;d(f,function(W,X){d(W,function(Z,Y){if(j(Z)){Z=Z.elm;T=Z.parentNode;U=A(T,false);M=X;if(Q){return false}}});if(Q){return !M}});for(R=0;R<f[0].length;R++){if(!f[M][R]){continue}S=f[M][R].elm;if(S!=P){if(!Q){O=h(S,"rowspan");if(O>1){s(S,"rowSpan",O+1);continue}}else{if(M>0&&f[M-1][R]){V=f[M-1][R].elm;O=h(V,"rowSpan");if(O>1){s(V,"rowSpan",O+1);continue}}}N=e(S);s(N,"colSpan",S.colSpan);U.appendChild(N);P=S}}if(U.hasChildNodes()){if(!Q){G.insertAfter(U,T)}else{T.parentNode.insertBefore(U,T)}}}function g(N){var O,M;d(f,function(P,Q){d(P,function(S,R){if(j(S)){O=R;if(N){return false}}});if(N){return !O}});d(f,function(S,T){var P,Q,R;if(!S[O]){return}P=S[O].elm;if(P!=M){R=h(P,"colspan");Q=h(P,"rowspan");if(R==1){if(!N){G.insertAfter(e(P),P);u(O,T,Q-1,R)}else{P.parentNode.insertBefore(e(P),P);u(O,T,Q-1,R)}}else{s(P,"colSpan",P.colSpan+1)}M=P}})}function n(){var M=[];d(f,function(N,O){d(N,function(Q,P){if(j(Q)&&c.inArray(M,P)===-1){d(f,function(T){var R=T[P].elm,S;S=h(R,"colSpan");if(S>1){s(R,"colSpan",S-1)}else{G.remove(R)}});M.push(P)}})});q()}function m(){var N;function M(Q){var P,R,O;P=G.getNext(Q,"tr");d(Q.cells,function(S){var T=h(S,"rowSpan");if(T>1){s(S,"rowSpan",T-1);R=F(S);u(R.x,R.y,1,1)}});R=F(Q.cells[0]);d(f[R.y],function(S){var T;S=S.elm;if(S!=O){T=h(S,"rowSpan");if(T<=1){G.remove(S)}else{s(S,"rowSpan",T-1)}O=S}})}N=k();d(N.reverse(),function(O){M(O)});q()}function E(){var M=k();G.remove(M);q();return M}function J(){var M=k();d(M,function(O,N){M[N]=A(O,true)});return M}function B(O,N){var P=k(),M=P[N?0:P.length-1],Q=M.cells.length;d(f,function(S){var R;Q=0;d(S,function(U,T){if(U.real){Q+=U.colspan}if(U.elm.parentNode==M){R=1}});if(R){return false}});if(!N){O.reverse()}d(O,function(T){var S=T.cells.length,R;for(i=0;i<S;i++){R=T.cells[i];s(R,"colSpan",1);s(R,"rowSpan",1)}for(i=S;i<Q;i++){T.appendChild(e(T.cells[S-1]))}for(i=Q;i<S;i++){G.remove(T.cells[i])}if(N){M.parentNode.insertBefore(T,M)}else{G.insertAfter(T,M)}})}function F(M){var N;d(f,function(O,P){d(O,function(R,Q){if(R.elm==M){N={x:Q,y:P};return false}});return !N});return N}function w(M){L=F(M)}function I(){var O,N,M;N=M=0;d(f,function(P,Q){d(P,function(S,R){var U,T;if(j(S)){S=f[Q][R];if(R>N){N=R}if(Q>M){M=Q}if(S.real){U=S.colspan-1;T=S.rowspan-1;if(U){if(R+U>N){N=R+U}}if(T){if(Q+T>M){M=Q+T}}}}})});return{x:N,y:M}}function v(S){var P,O,U,T,N,M,Q,R;D=F(S);if(L&&D){P=Math.min(L.x,D.x);O=Math.min(L.y,D.y);U=Math.max(L.x,D.x);T=Math.max(L.y,D.y);N=U;M=T;for(y=O;y<=M;y++){S=f[y][P];if(!S.real){if(P-(S.colspan-1)<P){P-=S.colspan-1}}}for(x=P;x<=N;x++){S=f[O][x];if(!S.real){if(O-(S.rowspan-1)<O){O-=S.rowspan-1}}}for(y=O;y<=T;y++){for(x=P;x<=U;x++){S=f[y][x];if(S.real){Q=S.colspan-1;R=S.rowspan-1;if(Q){if(x+Q>N){N=x+Q}}if(R){if(y+R>M){M=y+R}}}}}G.removeClass(G.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=O;y<=M;y++){for(x=P;x<=N;x++){if(f[y][x]){G.addClass(f[y][x].elm,"mceSelected")}}}}}c.extend(this,{deleteTable:r,split:C,merge:p,insertRow:l,insertCol:g,deleteCols:n,deleteRows:m,cutRows:E,copyRows:J,pasteRows:B,getPos:F,setStartCell:w,setEndCell:v})}c.create("tinymce.plugins.TablePlugin",{init:function(f,g){var e,k;function j(n){var m=f.selection,l=f.dom.getParent(n||m.getNode(),"table");if(l){return new a(l,f.dom,m)}}function h(){f.getBody().style.webkitUserSelect="";f.dom.removeClass(f.dom.select("td.mceSelected,th.mceSelected"),"mceSelected")}d([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(l){f.addButton(l[0],{title:l[1],cmd:l[2],ui:l[3]})});if(!c.isIE){f.onClick.add(function(l,m){m=m.target;if(m.nodeName==="TABLE"){l.selection.select(m);l.nodeChanged()}})}f.onPreProcess.add(function(m,n){var l,o,p,r=m.dom,q;l=r.select("table",n.node);o=l.length;while(o--){p=l[o];r.setAttrib(p,"data-mce-style","");if((q=r.getAttrib(p,"width"))){r.setStyle(p,"width",q);r.setAttrib(p,"width","")}if((q=r.getAttrib(p,"height"))){r.setStyle(p,"height",q);r.setAttrib(p,"height","")}}});f.onNodeChange.add(function(m,l,q){var o;q=m.selection.getStart();o=m.dom.getParent(q,"td,th,caption");l.setActive("table",q.nodeName==="TABLE"||!!o);if(o&&o.nodeName==="CAPTION"){o=0}l.setDisabled("delete_table",!o);l.setDisabled("delete_col",!o);l.setDisabled("delete_table",!o);l.setDisabled("delete_row",!o);l.setDisabled("col_after",!o);l.setDisabled("col_before",!o);l.setDisabled("row_after",!o);l.setDisabled("row_before",!o);l.setDisabled("row_props",!o);l.setDisabled("cell_props",!o);l.setDisabled("split_cells",!o);l.setDisabled("merge_cells",!o)});f.onInit.add(function(m){var l,p,q=m.dom,n;e=m.windowManager;m.onMouseDown.add(function(r,s){if(s.button!=2){h();p=q.getParent(s.target,"td,th");l=q.getParent(p,"table")}});q.bind(m.getDoc(),"mouseover",function(v){var t,s,u=v.target;if(p&&(n||u!=p)&&(u.nodeName=="TD"||u.nodeName=="TH")){s=q.getParent(u,"table");if(s==l){if(!n){n=j(s);n.setStartCell(p);m.getBody().style.webkitUserSelect="none"}n.setEndCell(u)}t=m.selection.getSel();try{if(t.removeAllRanges){t.removeAllRanges()}else{t.empty()}}catch(r){}v.preventDefault()}});m.onMouseUp.add(function(A,B){var s,u=A.selection,C,D=u.getSel(),r,v,t,z;if(p){if(n){A.getBody().style.webkitUserSelect=""}function w(E,G){var F=new c.dom.TreeWalker(E,E);do{if(E.nodeType==3&&c.trim(E.nodeValue).length!=0){if(G){s.setStart(E,0)}else{s.setEnd(E,E.nodeValue.length)}return}if(E.nodeName=="BR"){if(G){s.setStartBefore(E)}else{s.setEndBefore(E)}return}}while(E=(G?F.next():F.prev()))}C=q.select("td.mceSelected,th.mceSelected");if(C.length>0){s=q.createRng();v=C[0];z=C[C.length-1];w(v,1);r=new c.dom.TreeWalker(v,q.getParent(C[0],"table"));do{if(v.nodeName=="TD"||v.nodeName=="TH"){if(!q.hasClass(v,"mceSelected")){break}t=v}}while(v=r.next());w(t);u.setRng(s)}A.nodeChanged();p=n=l=null}});m.onKeyUp.add(function(r,s){h()});if(m&&m.plugins.contextmenu){m.plugins.contextmenu.onContextMenu.add(function(t,r,v){var w,u=m.selection,s=u.getNode()||m.getBody();if(m.dom.getParent(v,"td")||m.dom.getParent(v,"th")||m.dom.select("td.mceSelected,th.mceSelected").length){r.removeAll();if(s.nodeName=="A"&&!m.dom.getAttrib(s,"name")){r.add({title:"advanced.link_desc",icon:"link",cmd:m.plugins.advlink?"mceAdvLink":"mceLink",ui:true});r.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});r.addSeparator()}if(s.nodeName=="IMG"&&s.className.indexOf("mceItem")==-1){r.add({title:"advanced.image_desc",icon:"image",cmd:m.plugins.advimage?"mceAdvImage":"mceImage",ui:true});r.addSeparator()}r.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});r.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});r.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});r.addSeparator();w=r.addMenu({title:"table.cell"});w.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});w.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});w.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});w=r.addMenu({title:"table.row"});w.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});w.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});w.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});w.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});w.addSeparator();w.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});w.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});w.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!k);w.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!k);w=r.addMenu({title:"table.col"});w.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});w.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});w.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{r.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(!c.isIE){function o(){var r;for(r=m.getBody().lastChild;r&&r.nodeType==3&&!r.nodeValue.length;r=r.previousSibling){}if(r&&r.nodeName=="TABLE"){m.dom.add(m.getBody(),"p",null,'<br mce_bogus="1" />')}}if(c.isGecko){m.onKeyDown.add(function(s,u){var r,t,v=s.dom;if(u.keyCode==37||u.keyCode==38){r=s.selection.getRng();t=v.getParent(r.startContainer,"table");if(t&&s.getBody().firstChild==t){if(b(r,t)){r=v.createRng();r.setStartBefore(t);r.setEndBefore(t);s.selection.setRng(r);u.preventDefault()}}}})}m.onKeyUp.add(o);m.onSetContent.add(o);m.onVisualAid.add(o);m.onPreProcess.add(function(r,t){var s=t.node.lastChild;if(s&&s.childNodes.length==1&&s.firstChild.nodeName=="BR"){r.dom.remove(s)}});o()}});d({mceTableSplitCells:function(l){l.split()},mceTableMergeCells:function(m){var n,o,l;l=f.dom.getParent(f.selection.getNode(),"th,td");if(l){n=l.rowSpan;o=l.colSpan}if(!f.dom.select("td.mceSelected,th.mceSelected").length){e.open({url:g+"/merge_cells.htm",width:240+parseInt(f.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(f.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:n,cols:o,onaction:function(p){m.merge(l,p.cols,p.rows)},plugin_url:g})}else{m.merge()}},mceTableInsertRowBefore:function(l){l.insertRow(true)},mceTableInsertRowAfter:function(l){l.insertRow()},mceTableInsertColBefore:function(l){l.insertCol(true)},mceTableInsertColAfter:function(l){l.insertCol()},mceTableDeleteCol:function(l){l.deleteCols()},mceTableDeleteRow:function(l){l.deleteRows()},mceTableCutRow:function(l){k=l.cutRows()},mceTableCopyRow:function(l){k=l.copyRows()},mceTablePasteRowBefore:function(l){l.pasteRows(k,true)},mceTablePasteRowAfter:function(l){l.pasteRows(k)},mceTableDelete:function(l){l.deleteTable()}},function(m,l){f.addCommand(l,function(){var n=j();if(n){m(n);f.execCommand("mceRepaint");h()}})});d({mceInsertTable:function(l){e.open({url:g+"/table.htm",width:400+parseInt(f.getLang("table.table_delta_width",0)),height:320+parseInt(f.getLang("table.table_delta_height",0)),inline:1},{plugin_url:g,action:l?l.action:0})},mceTableRowProps:function(){e.open({url:g+"/row.htm",width:400+parseInt(f.getLang("table.rowprops_delta_width",0)),height:295+parseInt(f.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:g})},mceTableCellProps:function(){e.open({url:g+"/cell.htm",width:400+parseInt(f.getLang("table.cellprops_delta_width",0)),height:295+parseInt(f.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:g})}},function(m,l){f.addCommand(l,function(n,o){m(o)})})}});c.PluginManager.add("table",c.plugins.TablePlugin)})(tinymce);
|
mce/table/js/cell.js
CHANGED
@@ -83,8 +83,6 @@ function updateAction() {
|
|
83 |
return;
|
84 |
}
|
85 |
|
86 |
-
ed.execCommand('mceBeginUndoLevel');
|
87 |
-
|
88 |
switch (getSelectValue(formObj, 'action')) {
|
89 |
case "cell":
|
90 |
var celltype = getSelectValue(formObj, 'celltype');
|
@@ -166,15 +164,15 @@ function updateCell(td, skip_id) {
|
|
166 |
var dom = ed.dom;
|
167 |
|
168 |
if (!skip_id)
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
|
179 |
// Clear deprecated attributes
|
180 |
ed.dom.setAttrib(td, 'width', '');
|
83 |
return;
|
84 |
}
|
85 |
|
|
|
|
|
86 |
switch (getSelectValue(formObj, 'action')) {
|
87 |
case "cell":
|
88 |
var celltype = getSelectValue(formObj, 'celltype');
|
164 |
var dom = ed.dom;
|
165 |
|
166 |
if (!skip_id)
|
167 |
+
dom.setAttrib(td, 'id', formObj.id.value);
|
168 |
+
|
169 |
+
dom.setAttrib(td, 'align', formObj.align.value);
|
170 |
+
dom.setAttrib(td, 'vAlign', formObj.valign.value);
|
171 |
+
dom.setAttrib(td, 'lang', formObj.lang.value);
|
172 |
+
dom.setAttrib(td, 'dir', getSelectValue(formObj, 'dir'));
|
173 |
+
dom.setAttrib(td, 'style', ed.dom.serializeStyle(ed.dom.parseStyle(formObj.style.value)));
|
174 |
+
dom.setAttrib(td, 'scope', formObj.scope.value);
|
175 |
+
dom.setAttrib(td, 'class', getSelectValue(formObj, 'class'));
|
176 |
|
177 |
// Clear deprecated attributes
|
178 |
ed.dom.setAttrib(td, 'width', '');
|
mce/table/js/row.js
CHANGED
@@ -80,8 +80,6 @@ function updateAction() {
|
|
80 |
return;
|
81 |
}
|
82 |
|
83 |
-
inst.execCommand('mceBeginUndoLevel');
|
84 |
-
|
85 |
switch (action) {
|
86 |
case "row":
|
87 |
updateRow(trElm);
|
@@ -123,19 +121,19 @@ function updateRow(tr_elm, skip_id, skip_parent) {
|
|
123 |
|
124 |
// Update row element
|
125 |
if (!skip_id)
|
126 |
-
|
127 |
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
|
134 |
|
135 |
// Clear deprecated attributes
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
|
140 |
// Set styles
|
141 |
tr_elm.style.height = getCSSSize(formObj.height.value);
|
@@ -163,13 +161,10 @@ function updateRow(tr_elm, skip_id, skip_parent) {
|
|
163 |
if (newParent == null) {
|
164 |
newParent = doc.createElement(dest);
|
165 |
|
166 |
-
if (
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
theTable.insertBefore(newParent, theTable.firstChild);
|
171 |
-
} else
|
172 |
-
theTable.appendChild(newParent);
|
173 |
}
|
174 |
|
175 |
// append the row to the new parent
|
80 |
return;
|
81 |
}
|
82 |
|
|
|
|
|
83 |
switch (action) {
|
84 |
case "row":
|
85 |
updateRow(trElm);
|
121 |
|
122 |
// Update row element
|
123 |
if (!skip_id)
|
124 |
+
dom.setAttrib(tr_elm, 'id', formObj.id.value);
|
125 |
|
126 |
+
dom.setAttrib(tr_elm, 'align', getSelectValue(formObj, 'align'));
|
127 |
+
dom.setAttrib(tr_elm, 'vAlign', getSelectValue(formObj, 'valign'));
|
128 |
+
dom.setAttrib(tr_elm, 'lang', formObj.lang.value);
|
129 |
+
dom.setAttrib(tr_elm, 'dir', getSelectValue(formObj, 'dir'));
|
130 |
+
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(formObj.style.value)));
|
131 |
dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
|
132 |
|
133 |
// Clear deprecated attributes
|
134 |
+
dom.setAttrib(tr_elm, 'background', '');
|
135 |
+
dom.setAttrib(tr_elm, 'bgColor', '');
|
136 |
+
dom.setAttrib(tr_elm, 'height', '');
|
137 |
|
138 |
// Set styles
|
139 |
tr_elm.style.height = getCSSSize(formObj.height.value);
|
161 |
if (newParent == null) {
|
162 |
newParent = doc.createElement(dest);
|
163 |
|
164 |
+
if (theTable.firstChild.nodeName == 'CAPTION')
|
165 |
+
inst.dom.insertAfter(newParent, theTable.firstChild);
|
166 |
+
else
|
167 |
+
theTable.insertBefore(newParent, theTable.firstChild);
|
|
|
|
|
|
|
168 |
}
|
169 |
|
170 |
// append the row to the new parent
|
mce/table/js/table.js
CHANGED
@@ -12,7 +12,7 @@ function insertTable() {
|
|
12 |
tinyMCEPopup.restoreSelection();
|
13 |
|
14 |
if (!AutoValidator.validate(formObj)) {
|
15 |
-
tinyMCEPopup.alert(
|
16 |
return false;
|
17 |
}
|
18 |
|
@@ -21,7 +21,7 @@ function insertTable() {
|
|
21 |
// Get form data
|
22 |
cols = formObj.elements['cols'].value;
|
23 |
rows = formObj.elements['rows'].value;
|
24 |
-
border = formObj.elements['border'].value != "" ? formObj.elements['border'].value
|
25 |
cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : "";
|
26 |
cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : "";
|
27 |
align = getSelectValue(formObj, "align");
|
@@ -58,8 +58,6 @@ function insertTable() {
|
|
58 |
|
59 |
// Update table
|
60 |
if (action == "update") {
|
61 |
-
inst.execCommand('mceBeginUndoLevel');
|
62 |
-
|
63 |
dom.setAttrib(elm, 'cellPadding', cellpadding, true);
|
64 |
dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
|
65 |
dom.setAttrib(elm, 'border', border);
|
@@ -82,7 +80,7 @@ function insertTable() {
|
|
82 |
capEl = elm.ownerDocument.createElement('caption');
|
83 |
|
84 |
if (!tinymce.isIE)
|
85 |
-
capEl.innerHTML = '<br
|
86 |
|
87 |
elm.insertBefore(capEl, elm.firstChild);
|
88 |
}
|
@@ -151,7 +149,7 @@ function insertTable() {
|
|
151 |
html += makeAttrib('border', border);
|
152 |
html += makeAttrib('cellpadding', cellpadding);
|
153 |
html += makeAttrib('cellspacing', cellspacing);
|
154 |
-
html += makeAttrib('
|
155 |
|
156 |
if (width && inst.settings.inline_styles) {
|
157 |
if (style)
|
@@ -187,7 +185,7 @@ function insertTable() {
|
|
187 |
|
188 |
if (caption) {
|
189 |
if (!tinymce.isIE)
|
190 |
-
html += '<caption><br
|
191 |
else
|
192 |
html += '<caption></caption>';
|
193 |
}
|
@@ -197,7 +195,7 @@ function insertTable() {
|
|
197 |
|
198 |
for (var x=0; x<cols; x++) {
|
199 |
if (!tinymce.isIE)
|
200 |
-
html += '<td><br
|
201 |
else
|
202 |
html += '<td></td>';
|
203 |
}
|
@@ -207,8 +205,6 @@ function insertTable() {
|
|
207 |
|
208 |
html += "</table>";
|
209 |
|
210 |
-
inst.execCommand('mceBeginUndoLevel');
|
211 |
-
|
212 |
// Move table
|
213 |
if (inst.settings.fix_table_elements) {
|
214 |
var patt = '';
|
@@ -231,7 +227,7 @@ function insertTable() {
|
|
231 |
} else
|
232 |
inst.execCommand('mceInsertContent', false, html);
|
233 |
|
234 |
-
tinymce.each(dom.select('table[
|
235 |
var td = dom.select('td', node);
|
236 |
|
237 |
try {
|
@@ -242,7 +238,7 @@ function insertTable() {
|
|
242 |
// Ignore
|
243 |
}
|
244 |
|
245 |
-
dom.setAttrib(node, '
|
246 |
});
|
247 |
|
248 |
inst.addVisual();
|
12 |
tinyMCEPopup.restoreSelection();
|
13 |
|
14 |
if (!AutoValidator.validate(formObj)) {
|
15 |
+
tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
16 |
return false;
|
17 |
}
|
18 |
|
21 |
// Get form data
|
22 |
cols = formObj.elements['cols'].value;
|
23 |
rows = formObj.elements['rows'].value;
|
24 |
+
border = formObj.elements['border'].value != "" ? formObj.elements['border'].value : 0;
|
25 |
cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : "";
|
26 |
cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : "";
|
27 |
align = getSelectValue(formObj, "align");
|
58 |
|
59 |
// Update table
|
60 |
if (action == "update") {
|
|
|
|
|
61 |
dom.setAttrib(elm, 'cellPadding', cellpadding, true);
|
62 |
dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
|
63 |
dom.setAttrib(elm, 'border', border);
|
80 |
capEl = elm.ownerDocument.createElement('caption');
|
81 |
|
82 |
if (!tinymce.isIE)
|
83 |
+
capEl.innerHTML = '<br data-mce-bogus="1"/>';
|
84 |
|
85 |
elm.insertBefore(capEl, elm.firstChild);
|
86 |
}
|
149 |
html += makeAttrib('border', border);
|
150 |
html += makeAttrib('cellpadding', cellpadding);
|
151 |
html += makeAttrib('cellspacing', cellspacing);
|
152 |
+
html += makeAttrib('data-mce-new', '1');
|
153 |
|
154 |
if (width && inst.settings.inline_styles) {
|
155 |
if (style)
|
185 |
|
186 |
if (caption) {
|
187 |
if (!tinymce.isIE)
|
188 |
+
html += '<caption><br data-mce-bogus="1"/></caption>';
|
189 |
else
|
190 |
html += '<caption></caption>';
|
191 |
}
|
195 |
|
196 |
for (var x=0; x<cols; x++) {
|
197 |
if (!tinymce.isIE)
|
198 |
+
html += '<td><br data-mce-bogus="1"/></td>';
|
199 |
else
|
200 |
html += '<td></td>';
|
201 |
}
|
205 |
|
206 |
html += "</table>";
|
207 |
|
|
|
|
|
208 |
// Move table
|
209 |
if (inst.settings.fix_table_elements) {
|
210 |
var patt = '';
|
227 |
} else
|
228 |
inst.execCommand('mceInsertContent', false, html);
|
229 |
|
230 |
+
tinymce.each(dom.select('table[data-mce-new]'), function(node) {
|
231 |
var td = dom.select('td', node);
|
232 |
|
233 |
try {
|
238 |
// Ignore
|
239 |
}
|
240 |
|
241 |
+
dom.setAttrib(node, 'data-mce-new', '');
|
242 |
});
|
243 |
|
244 |
inst.addVisual();
|
mce/table/langs/en_dlg.js
CHANGED
@@ -7,7 +7,7 @@ rowtype:"Row in table part",
|
|
7 |
title:"Insert/Modify table",
|
8 |
width:"Width",
|
9 |
height:"Height",
|
10 |
-
cols:"
|
11 |
rows:"Rows",
|
12 |
cellspacing:"Cellspacing",
|
13 |
cellpadding:"Cellpadding",
|
7 |
title:"Insert/Modify table",
|
8 |
width:"Width",
|
9 |
height:"Height",
|
10 |
+
cols:"Columns",
|
11 |
rows:"Rows",
|
12 |
cellspacing:"Cellspacing",
|
13 |
cellpadding:"Cellpadding",
|
mce/table/merge_cells.htm
CHANGED
@@ -2,35 +2,30 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.merge_cells_title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/validate.js?ver=
|
8 |
-
<script type="text/javascript" src="js/merge_cells.js?ver=
|
9 |
</head>
|
10 |
-
<body style="margin: 8px">
|
11 |
-
<form onsubmit="
|
12 |
<fieldset>
|
13 |
<legend>{#table_dlg.merge_cells_title}</legend>
|
14 |
-
|
15 |
-
|
16 |
-
<td>{#table_dlg.cols}
|
17 |
-
<td align="right"><input type="text" name="numcols" value="" class="number min1 mceFocus" style="width: 30px" /></td>
|
18 |
-
|
19 |
-
|
20 |
-
<td>{#table_dlg.rows}
|
21 |
-
<td align="right"><input type="text" name="numrows" value="" class="number min1" style="width: 30px" /></td>
|
22 |
-
|
23 |
-
|
24 |
</fieldset>
|
25 |
|
26 |
<div class="mceActionPanel">
|
27 |
-
<
|
28 |
-
|
29 |
-
</div>
|
30 |
-
|
31 |
-
<div style="float: right">
|
32 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
33 |
-
</div>
|
34 |
</div>
|
35 |
</form>
|
36 |
</body>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.merge_cells_title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/validate.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="js/merge_cells.js?ver=342"></script>
|
9 |
</head>
|
10 |
+
<body style="margin: 8px" role="application">
|
11 |
+
<form onsubmit="MergeCellsDialog.merge();return false;" action="#">
|
12 |
<fieldset>
|
13 |
<legend>{#table_dlg.merge_cells_title}</legend>
|
14 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="3" width="100%">
|
15 |
+
<tr>
|
16 |
+
<td><label for="numcols">{#table_dlg.cols}</label>:</td>
|
17 |
+
<td align="right"><input type="text" id="numcols" name="numcols" value="" class="number min1 mceFocus" style="width: 30px" aria-required="true" /></td>
|
18 |
+
</tr>
|
19 |
+
<tr>
|
20 |
+
<td><label for="numrows">{#table_dlg.rows}</label>:</td>
|
21 |
+
<td align="right"><input type="text" id="numrows" name="numrows" value="" class="number min1" style="width: 30px" aria-required="true" /></td>
|
22 |
+
</tr>
|
23 |
+
</table>
|
24 |
</fieldset>
|
25 |
|
26 |
<div class="mceActionPanel">
|
27 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
28 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
29 |
</div>
|
30 |
</form>
|
31 |
</body>
|
mce/table/row.htm
CHANGED
@@ -2,19 +2,19 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.row_title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
9 |
-
<script type="text/javascript" src="js/row.js?ver=
|
10 |
-
<link href="css/row.css?ver=
|
11 |
</head>
|
12 |
-
<body id="tablerow" style="display: none">
|
13 |
<form onsubmit="updateAction();return false;" action="#">
|
14 |
<div class="tabs">
|
15 |
<ul>
|
16 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
17 |
-
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
@@ -23,7 +23,7 @@
|
|
23 |
<fieldset>
|
24 |
<legend>{#table_dlg.general_props}</legend>
|
25 |
|
26 |
-
<table border="0" cellpadding="4" cellspacing="0">
|
27 |
<tr>
|
28 |
<td><label for="rowtype">{#table_dlg.rowtype}</label></td>
|
29 |
<td class="col2">
|
@@ -80,7 +80,7 @@
|
|
80 |
<fieldset>
|
81 |
<legend>{#table_dlg.advanced_props}</legend>
|
82 |
|
83 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
84 |
<tr>
|
85 |
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
86 |
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
@@ -112,7 +112,7 @@
|
|
112 |
<tr>
|
113 |
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
114 |
<td>
|
115 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
116 |
<tr>
|
117 |
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
118 |
<td id="backgroundimagebrowsercontainer"> </td>
|
@@ -122,14 +122,16 @@
|
|
122 |
</tr>
|
123 |
|
124 |
<tr>
|
125 |
-
<td class="column1"><label for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
126 |
<td>
|
127 |
-
<
|
|
|
128 |
<tr>
|
129 |
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
130 |
<td id="bgcolor_pickcontainer"> </td>
|
131 |
</tr>
|
132 |
</table>
|
|
|
133 |
</td>
|
134 |
</tr>
|
135 |
</table>
|
@@ -147,13 +149,8 @@
|
|
147 |
</select>
|
148 |
</div>
|
149 |
|
150 |
-
<
|
151 |
-
|
152 |
-
</div>
|
153 |
-
|
154 |
-
<div style="float: right">
|
155 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
156 |
-
</div>
|
157 |
</div>
|
158 |
</form>
|
159 |
</body>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.row_title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/row.js?ver=342"></script>
|
10 |
+
<link href="css/row.css?ver=342" rel="stylesheet" type="text/css" />
|
11 |
</head>
|
12 |
+
<body id="tablerow" style="display: none" role="application">
|
13 |
<form onsubmit="updateAction();return false;" action="#">
|
14 |
<div class="tabs">
|
15 |
<ul>
|
16 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
17 |
+
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
23 |
<fieldset>
|
24 |
<legend>{#table_dlg.general_props}</legend>
|
25 |
|
26 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
27 |
<tr>
|
28 |
<td><label for="rowtype">{#table_dlg.rowtype}</label></td>
|
29 |
<td class="col2">
|
80 |
<fieldset>
|
81 |
<legend>{#table_dlg.advanced_props}</legend>
|
82 |
|
83 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
84 |
<tr>
|
85 |
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
86 |
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
112 |
<tr>
|
113 |
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
114 |
<td>
|
115 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
116 |
<tr>
|
117 |
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
118 |
<td id="backgroundimagebrowsercontainer"> </td>
|
122 |
</tr>
|
123 |
|
124 |
<tr>
|
125 |
+
<td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
|
126 |
<td>
|
127 |
+
<span role="group" aria-labelledby="bgcolor_label">
|
128 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
129 |
<tr>
|
130 |
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
131 |
<td id="bgcolor_pickcontainer"> </td>
|
132 |
</tr>
|
133 |
</table>
|
134 |
+
</span>
|
135 |
</td>
|
136 |
</tr>
|
137 |
</table>
|
149 |
</select>
|
150 |
</div>
|
151 |
|
152 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
153 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
154 |
</div>
|
155 |
</form>
|
156 |
</body>
|
mce/table/table.htm
CHANGED
@@ -2,20 +2,21 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/validate.js?ver=
|
9 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
10 |
-
<script type="text/javascript" src="js/table.js?ver=
|
11 |
-
<link href="css/table.css?ver=
|
12 |
</head>
|
13 |
-
<body id="table" style="display: none">
|
|
|
14 |
<form onsubmit="insertTable();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
18 |
-
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
19 |
</ul>
|
20 |
</div>
|
21 |
|
@@ -23,48 +24,48 @@
|
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#table_dlg.general_props}</legend>
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
</fieldset>
|
69 |
</div>
|
70 |
|
@@ -72,7 +73,7 @@
|
|
72 |
<fieldset>
|
73 |
<legend>{#table_dlg.advanced_props}</legend>
|
74 |
|
75 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
76 |
<tr>
|
77 |
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
78 |
<td><input id="id" name="id" type="text" value="" class="advfield" /></td>
|
@@ -98,7 +99,7 @@
|
|
98 |
<tr>
|
99 |
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
100 |
<td>
|
101 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
102 |
<tr>
|
103 |
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" class="advfield" onchange="changedBackgroundImage();" /></td>
|
104 |
<td id="backgroundimagebrowsercontainer"> </td>
|
@@ -150,10 +151,10 @@
|
|
150 |
</td>
|
151 |
</tr>
|
152 |
|
153 |
-
<tr>
|
154 |
-
<td class="column1"><label for="bordercolor">{#table_dlg.bordercolor}</label></td>
|
155 |
<td>
|
156 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
157 |
<tr>
|
158 |
<td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
|
159 |
<td id="bordercolor_pickcontainer"> </td>
|
@@ -162,10 +163,10 @@
|
|
162 |
</td>
|
163 |
</tr>
|
164 |
|
165 |
-
<tr>
|
166 |
-
<td class="column1"><label for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
167 |
<td>
|
168 |
-
<table border="0" cellpadding="0" cellspacing="0">
|
169 |
<tr>
|
170 |
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
171 |
<td id="bgcolor_pickcontainer"> </td>
|
@@ -179,13 +180,8 @@
|
|
179 |
</div>
|
180 |
|
181 |
<div class="mceActionPanel">
|
182 |
-
<
|
183 |
-
|
184 |
-
</div>
|
185 |
-
|
186 |
-
<div style="float: right">
|
187 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
188 |
-
</div>
|
189 |
</div>
|
190 |
</form>
|
191 |
</body>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#table_dlg.title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/validate.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/table.js?ver=342"></script>
|
11 |
+
<link href="css/table.css?ver=342" rel="stylesheet" type="text/css" />
|
12 |
</head>
|
13 |
+
<body id="table" style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span style="display:none;" id="app_title">{#table_dlg.title}</span>
|
15 |
<form onsubmit="insertTable();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" aria-controls="general_panel" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
19 |
+
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
20 |
</ul>
|
21 |
</div>
|
22 |
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#table_dlg.general_props}</legend>
|
27 |
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%">
|
28 |
+
<tr>
|
29 |
+
<td><label id="colslabel" for="cols">{#table_dlg.cols}</label></td>
|
30 |
+
<td><input id="cols" name="cols" type="text" value="" size="3" maxlength="3" class="required number min1 mceFocus" aria-required="true" /></td>
|
31 |
+
<td><label id="rowslabel" for="rows">{#table_dlg.rows}</label></td>
|
32 |
+
<td><input id="rows" name="rows" type="text" value="" size="3" maxlength="3" class="required number min1" aria-required="true" /></td>
|
33 |
+
</tr>
|
34 |
+
<tr>
|
35 |
+
<td><label id="cellpaddinglabel" for="cellpadding">{#table_dlg.cellpadding}</label></td>
|
36 |
+
<td><input id="cellpadding" name="cellpadding" type="text" value="" size="3" maxlength="3" class="number" /></td>
|
37 |
+
<td><label id="cellspacinglabel" for="cellspacing">{#table_dlg.cellspacing}</label></td>
|
38 |
+
<td><input id="cellspacing" name="cellspacing" type="text" value="" size="3" maxlength="3" class="number" /></td>
|
39 |
+
</tr>
|
40 |
+
<tr>
|
41 |
+
<td><label id="alignlabel" for="align">{#table_dlg.align}</label></td>
|
42 |
+
<td><select id="align" name="align">
|
43 |
+
<option value="">{#not_set}</option>
|
44 |
+
<option value="center">{#table_dlg.align_middle}</option>
|
45 |
+
<option value="left">{#table_dlg.align_left}</option>
|
46 |
+
<option value="right">{#table_dlg.align_right}</option>
|
47 |
+
</select></td>
|
48 |
+
<td><label id="borderlabel" for="border">{#table_dlg.border}</label></td>
|
49 |
+
<td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="changedBorder();" class="number" /></td>
|
50 |
+
</tr>
|
51 |
+
<tr id="width_row">
|
52 |
+
<td><label id="widthlabel" for="width">{#table_dlg.width}</label></td>
|
53 |
+
<td><input name="width" type="text" id="width" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td>
|
54 |
+
<td><label id="heightlabel" for="height">{#table_dlg.height}</label></td>
|
55 |
+
<td><input name="height" type="text" id="height" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td>
|
56 |
+
</tr>
|
57 |
+
<tr id="styleSelectRow" >
|
58 |
+
<td><label id="classlabel" for="class">{#class_name}</label></td>
|
59 |
+
<td colspan="3" >
|
60 |
+
<select id="class" name="class" class="mceEditableSelect">
|
61 |
+
<option value="" selected="selected">{#not_set}</option>
|
62 |
+
</select></td>
|
63 |
+
</tr>
|
64 |
+
<tr>
|
65 |
+
<td class="column1" ><label for="caption">{#table_dlg.caption}</label></td>
|
66 |
+
<td><input id="caption" name="caption" type="checkbox" class="checkbox" value="true" /></td>
|
67 |
+
</tr>
|
68 |
+
</table>
|
69 |
</fieldset>
|
70 |
</div>
|
71 |
|
73 |
<fieldset>
|
74 |
<legend>{#table_dlg.advanced_props}</legend>
|
75 |
|
76 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
77 |
<tr>
|
78 |
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
79 |
<td><input id="id" name="id" type="text" value="" class="advfield" /></td>
|
99 |
<tr>
|
100 |
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
101 |
<td>
|
102 |
+
<table role="presentation" aria-labelledby="backgroundimage_label" border="0" cellpadding="0" cellspacing="0">
|
103 |
<tr>
|
104 |
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" class="advfield" onchange="changedBackgroundImage();" /></td>
|
105 |
<td id="backgroundimagebrowsercontainer"> </td>
|
151 |
</td>
|
152 |
</tr>
|
153 |
|
154 |
+
<tr role="group" aria-labelledby="bordercolor_label">
|
155 |
+
<td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td>
|
156 |
<td>
|
157 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
158 |
<tr>
|
159 |
<td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
|
160 |
<td id="bordercolor_pickcontainer"> </td>
|
163 |
</td>
|
164 |
</tr>
|
165 |
|
166 |
+
<tr role="group" aria-labelledby="bgcolor_label">
|
167 |
+
<td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
168 |
<td>
|
169 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
170 |
<tr>
|
171 |
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
172 |
<td id="bgcolor_pickcontainer"> </td>
|
180 |
</div>
|
181 |
|
182 |
<div class="mceActionPanel">
|
183 |
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
184 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
185 |
</div>
|
186 |
</form>
|
187 |
</body>
|
mce/visualchars/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state&&e.format!="raw"&&!e.draft){c.state=true;c._toggleVisualChars(false)}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(m){var p=this,k=p.editor,a,g,j,n=k.getDoc(),o=k.getBody(),l,q=k.selection,e,c,f;p.state=!p.state;k.controlManager.setActive("visualchars",p.state);if(m){f=q.getBookmark()}if(p.state){a=[];tinymce.walk(o,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(g=0;g<a.length;g++){l=a[g].nodeValue;l=l.replace(/(\u00a0)/g,'<span
|
1 |
+
(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state&&e.format!="raw"&&!e.draft){c.state=true;c._toggleVisualChars(false)}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(m){var p=this,k=p.editor,a,g,j,n=k.getDoc(),o=k.getBody(),l,q=k.selection,e,c,f;p.state=!p.state;k.controlManager.setActive("visualchars",p.state);if(m){f=q.getBookmark()}if(p.state){a=[];tinymce.walk(o,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(g=0;g<a.length;g++){l=a[g].nodeValue;l=l.replace(/(\u00a0)/g,'<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">$1</span>');c=k.dom.create("div",null,l);while(node=c.lastChild){k.dom.insertAfter(node,a[g])}k.dom.remove(a[g])}}else{a=k.dom.select("span.mceItemNbsp",o);for(g=a.length-1;g>=0;g--){k.dom.remove(a[g],1)}}q.moveToBookmark(f)}});tinymce.PluginManager.add("visualchars",tinymce.plugins.VisualChars)})();
|
mce/xhtmlxtras/abbr.htm
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_abbr_element}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
9 |
-
<script type="text/javascript" src="js/element_common.js?ver=
|
10 |
-
<script type="text/javascript" src="js/abbr.js?ver=
|
11 |
-
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=
|
12 |
</head>
|
13 |
-
<body style="display: none">
|
|
|
14 |
<form onsubmit="insertAbbr();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
18 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
19 |
</ul>
|
20 |
</div>
|
@@ -23,7 +24,7 @@
|
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
26 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
27 |
<tr>
|
28 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
29 |
<td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
|
@@ -41,7 +42,7 @@
|
|
41 |
</td>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
-
<td class="label"><label id="stylelabel" for="
|
45 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
46 |
</tr>
|
47 |
<tr>
|
@@ -67,7 +68,7 @@
|
|
67 |
<fieldset>
|
68 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
69 |
|
70 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
71 |
<tr>
|
72 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
73 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
@@ -132,17 +133,10 @@
|
|
132 |
</div>
|
133 |
</div>
|
134 |
<div class="mceActionPanel">
|
135 |
-
<
|
136 |
-
|
137 |
-
|
138 |
-
<div style="float: left">
|
139 |
-
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAbbr();" style="display: none;" />
|
140 |
-
</div>
|
141 |
-
<div style="float: right">
|
142 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
143 |
-
</div>
|
144 |
</div>
|
145 |
-
|
146 |
</form>
|
147 |
</body>
|
148 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_abbr_element}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/element_common.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/abbr.js?ver=342"></script>
|
11 |
+
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=342" />
|
12 |
</head>
|
13 |
+
<body style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_abbr_element}</span>
|
15 |
<form onsubmit="insertAbbr();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
19 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
20 |
</ul>
|
21 |
</div>
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
27 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
28 |
<tr>
|
29 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
30 |
<td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
|
42 |
</td>
|
43 |
</tr>
|
44 |
<tr>
|
45 |
+
<td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
|
46 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
47 |
</tr>
|
48 |
<tr>
|
68 |
<fieldset>
|
69 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
70 |
|
71 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
72 |
<tr>
|
73 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
74 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
133 |
</div>
|
134 |
</div>
|
135 |
<div class="mceActionPanel">
|
136 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
137 |
+
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAbbr();" style="display: none;" />
|
138 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
</div>
|
|
|
140 |
</form>
|
141 |
</body>
|
142 |
</html>
|
mce/xhtmlxtras/acronym.htm
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_acronym_element}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
9 |
-
<script type="text/javascript" src="js/element_common.js?ver=
|
10 |
-
<script type="text/javascript" src="js/acronym.js?ver=
|
11 |
-
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=
|
12 |
</head>
|
13 |
-
<body style="display: none">
|
|
|
14 |
<form onsubmit="insertAcronym();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
18 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
19 |
</ul>
|
20 |
</div>
|
@@ -23,7 +24,7 @@
|
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
26 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
27 |
<tr>
|
28 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
29 |
<td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
|
@@ -41,7 +42,7 @@
|
|
41 |
</td>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
-
<td class="label"><label id="stylelabel" for="
|
45 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
46 |
</tr>
|
47 |
<tr>
|
@@ -67,7 +68,7 @@
|
|
67 |
<fieldset>
|
68 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
69 |
|
70 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
71 |
<tr>
|
72 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
73 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
@@ -132,17 +133,10 @@
|
|
132 |
</div>
|
133 |
</div>
|
134 |
<div class="mceActionPanel">
|
135 |
-
<
|
136 |
-
|
137 |
-
|
138 |
-
<div style="float: left">
|
139 |
-
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAcronym();" style="display: none;" />
|
140 |
-
</div>
|
141 |
-
<div style="float: right">
|
142 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
143 |
-
</div>
|
144 |
</div>
|
145 |
-
|
146 |
</form>
|
147 |
</body>
|
148 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_acronym_element}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/element_common.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/acronym.js?ver=342"></script>
|
11 |
+
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=342" />
|
12 |
</head>
|
13 |
+
<body style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_acronym_element}</span>
|
15 |
<form onsubmit="insertAcronym();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
19 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
20 |
</ul>
|
21 |
</div>
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
27 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
28 |
<tr>
|
29 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
30 |
<td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
|
42 |
</td>
|
43 |
</tr>
|
44 |
<tr>
|
45 |
+
<td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
|
46 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
47 |
</tr>
|
48 |
<tr>
|
68 |
<fieldset>
|
69 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
70 |
|
71 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
72 |
<tr>
|
73 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
74 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
133 |
</div>
|
134 |
</div>
|
135 |
<div class="mceActionPanel">
|
136 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
137 |
+
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAcronym();" style="display: none;" />
|
138 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
</div>
|
|
|
140 |
</form>
|
141 |
</body>
|
142 |
</html>
|
mce/xhtmlxtras/attributes.htm
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.attribs_title}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
9 |
-
<script type="text/javascript" src="js/attributes.js?ver=
|
10 |
-
<link rel="stylesheet" type="text/css" href="css/attributes.css?ver=
|
11 |
</head>
|
12 |
-
<body style="display: none">
|
|
|
13 |
<form onsubmit="insertAction();return false;" action="#">
|
14 |
<div class="tabs">
|
15 |
<ul>
|
16 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_attrib_tab}</a></span></li>
|
17 |
-
<li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_events_tab}</a></span></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
@@ -22,7 +23,7 @@
|
|
22 |
<div id="general_panel" class="panel current">
|
23 |
<fieldset>
|
24 |
<legend>{#xhtmlxtras_dlg.attribute_attrib_tab}</legend>
|
25 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
26 |
<tr>
|
27 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
28 |
<td><input id="title" name="title" type="text" value="" class="mceFocus" /></td>
|
@@ -75,7 +76,7 @@
|
|
75 |
<fieldset>
|
76 |
<legend>{#xhtmlxtras_dlg.attribute_events_tab}</legend>
|
77 |
|
78 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
79 |
<tr>
|
80 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
81 |
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
|
@@ -140,14 +141,9 @@
|
|
140 |
</div>
|
141 |
</div>
|
142 |
<div class="mceActionPanel">
|
143 |
-
<
|
144 |
-
|
145 |
-
</div>
|
146 |
-
<div style="float: right">
|
147 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
148 |
-
</div>
|
149 |
</div>
|
150 |
-
|
151 |
</form>
|
152 |
</body>
|
153 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.attribs_title}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/attributes.js?ver=342"></script>
|
10 |
+
<link rel="stylesheet" type="text/css" href="css/attributes.css?ver=342" />
|
11 |
</head>
|
12 |
+
<body style="display: none" role="application" aria-labelledby="app_title">
|
13 |
+
<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.attribs_title}</span>
|
14 |
<form onsubmit="insertAction();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_attrib_tab}</a></span></li>
|
18 |
+
<li id="events_tab" aria-controls="events_panel"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_events_tab}</a></span></li>
|
19 |
</ul>
|
20 |
</div>
|
21 |
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#xhtmlxtras_dlg.attribute_attrib_tab}</legend>
|
26 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
27 |
<tr>
|
28 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
29 |
<td><input id="title" name="title" type="text" value="" class="mceFocus" /></td>
|
76 |
<fieldset>
|
77 |
<legend>{#xhtmlxtras_dlg.attribute_events_tab}</legend>
|
78 |
|
79 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
80 |
<tr>
|
81 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
82 |
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
|
141 |
</div>
|
142 |
</div>
|
143 |
<div class="mceActionPanel">
|
144 |
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
145 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
146 |
</div>
|
|
|
147 |
</form>
|
148 |
</body>
|
149 |
</html>
|
mce/xhtmlxtras/cite.htm
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_cite_element}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
9 |
-
<script type="text/javascript" src="js/element_common.js?ver=
|
10 |
-
<script type="text/javascript" src="js/cite.js?ver=
|
11 |
-
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=
|
12 |
</head>
|
13 |
-
<body style="display: none">
|
|
|
14 |
<form onsubmit="insertCite();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
18 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
19 |
</ul>
|
20 |
</div>
|
@@ -23,7 +24,7 @@
|
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
26 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
27 |
<tr>
|
28 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
29 |
<td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
|
@@ -67,7 +68,7 @@
|
|
67 |
<fieldset>
|
68 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
69 |
|
70 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
71 |
<tr>
|
72 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
73 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
@@ -132,17 +133,10 @@
|
|
132 |
</div>
|
133 |
</div>
|
134 |
<div class="mceActionPanel">
|
135 |
-
<
|
136 |
-
|
137 |
-
|
138 |
-
<div style="float: left">
|
139 |
-
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeCite();" style="display: none;" />
|
140 |
-
</div>
|
141 |
-
<div style="float: right">
|
142 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
143 |
-
</div>
|
144 |
</div>
|
145 |
-
|
146 |
</form>
|
147 |
</body>
|
148 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_cite_element}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/element_common.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/cite.js?ver=342"></script>
|
11 |
+
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=342" />
|
12 |
</head>
|
13 |
+
<body style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_cite_element}</span>
|
15 |
<form onsubmit="insertCite();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
19 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
20 |
</ul>
|
21 |
</div>
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
27 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
28 |
<tr>
|
29 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
30 |
<td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
|
68 |
<fieldset>
|
69 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
70 |
|
71 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
72 |
<tr>
|
73 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
74 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
133 |
</div>
|
134 |
</div>
|
135 |
<div class="mceActionPanel">
|
136 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
137 |
+
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeCite();" style="display: none;" />
|
138 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
</div>
|
|
|
140 |
</form>
|
141 |
</body>
|
142 |
</html>
|
mce/xhtmlxtras/del.htm
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_del_element}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
9 |
-
<script type="text/javascript" src="js/element_common.js?ver=
|
10 |
-
<script type="text/javascript" src="js/del.js?ver=
|
11 |
-
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=
|
12 |
</head>
|
13 |
-
<body id="xhtmlxtrasins" style="display: none">
|
|
|
14 |
<form onsubmit="insertDel();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
18 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
19 |
</ul>
|
20 |
</div>
|
@@ -23,14 +24,14 @@
|
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
|
26 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
27 |
<tr>
|
28 |
<td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
|
29 |
<td>
|
30 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
31 |
<tr>
|
32 |
<td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
|
33 |
-
<td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
|
34 |
</tr>
|
35 |
</table>
|
36 |
</td>
|
@@ -43,7 +44,7 @@
|
|
43 |
</fieldset>
|
44 |
<fieldset>
|
45 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
46 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
47 |
<tr>
|
48 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
49 |
<td><input id="title" name="title" type="text" value="" class="field" /></td>
|
@@ -61,7 +62,7 @@
|
|
61 |
</td>
|
62 |
</tr>
|
63 |
<tr>
|
64 |
-
<td class="label"><label id="stylelabel" for="
|
65 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
66 |
</tr>
|
67 |
<tr>
|
@@ -87,7 +88,7 @@
|
|
87 |
<fieldset>
|
88 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
89 |
|
90 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
91 |
<tr>
|
92 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
93 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
@@ -152,18 +153,10 @@
|
|
152 |
</div>
|
153 |
</div>
|
154 |
<div class="mceActionPanel">
|
155 |
-
<
|
156 |
-
|
157 |
-
|
158 |
-
<div style="float: left">
|
159 |
-
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeDel();" style="display: none;" />
|
160 |
-
</div>
|
161 |
-
<div style="float: right">
|
162 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
163 |
-
</div>
|
164 |
</div>
|
165 |
-
|
166 |
</form>
|
167 |
-
|
168 |
</body>
|
169 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_del_element}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/element_common.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/del.js?ver=342"></script>
|
11 |
+
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=342" />
|
12 |
</head>
|
13 |
+
<body id="xhtmlxtrasins" style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_del_element}</span>
|
15 |
<form onsubmit="insertDel();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
19 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
20 |
</ul>
|
21 |
</div>
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
|
27 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
28 |
<tr>
|
29 |
<td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
|
30 |
<td>
|
31 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
32 |
<tr>
|
33 |
<td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
|
34 |
+
<td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse" role="button" aria-labelledby="datetimelabel"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
|
35 |
</tr>
|
36 |
</table>
|
37 |
</td>
|
44 |
</fieldset>
|
45 |
<fieldset>
|
46 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
47 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
48 |
<tr>
|
49 |
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
50 |
<td><input id="title" name="title" type="text" value="" class="field" /></td>
|
62 |
</td>
|
63 |
</tr>
|
64 |
<tr>
|
65 |
+
<td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
|
66 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
67 |
</tr>
|
68 |
<tr>
|
88 |
<fieldset>
|
89 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
90 |
|
91 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
92 |
<tr>
|
93 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
94 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
153 |
</div>
|
154 |
</div>
|
155 |
<div class="mceActionPanel">
|
156 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
157 |
+
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeDel();" style="display: none;" />
|
158 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
|
|
160 |
</form>
|
|
|
161 |
</body>
|
162 |
</html>
|
mce/xhtmlxtras/editor_plugin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(a,b){a.addCommand("mceCite",function(){a.windowManager.open({file:b+"/cite.htm",width:350+parseInt(a.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAcronym",function(){a.windowManager.open({file:b+"/acronym.htm",width:350+parseInt(a.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.
|
1 |
+
(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(a,b){a.addCommand("mceCite",function(){a.windowManager.open({file:b+"/cite.htm",width:350+parseInt(a.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAcronym",function(){a.windowManager.open({file:b+"/acronym.htm",width:350+parseInt(a.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.acronym_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAbbr",function(){a.windowManager.open({file:b+"/abbr.htm",width:350+parseInt(a.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.abbr_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceDel",function(){a.windowManager.open({file:b+"/del.htm",width:340+parseInt(a.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(a.getLang("xhtmlxtras.del_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceIns",function(){a.windowManager.open({file:b+"/ins.htm",width:340+parseInt(a.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(a.getLang("xhtmlxtras.ins_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAttributes",function(){a.windowManager.open({file:b+"/attributes.htm",width:380+parseInt(a.getLang("xhtmlxtras.attr_delta_width",0)),height:370+parseInt(a.getLang("xhtmlxtras.attr_delta_height",0)),inline:1},{plugin_url:b})});a.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});a.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});a.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});a.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});a.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});a.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});a.onNodeChange.add(function(d,c,f,e){f=d.dom.getParent(f,"CITE,ACRONYM,ABBR,DEL,INS");c.setDisabled("cite",e);c.setDisabled("acronym",e);c.setDisabled("abbr",e);c.setDisabled("del",e);c.setDisabled("ins",e);c.setDisabled("attribs",f&&f.nodeName=="BODY");c.setActive("cite",0);c.setActive("acronym",0);c.setActive("abbr",0);c.setActive("del",0);c.setActive("ins",0);if(f){do{c.setDisabled(f.nodeName.toLowerCase(),0);c.setActive(f.nodeName.toLowerCase(),1)}while(f=f.parentNode)}});a.onPreInit.add(function(){a.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})();
|
mce/xhtmlxtras/ins.htm
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_ins_element}</title>
|
5 |
-
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=
|
6 |
-
<script type="text/javascript" src="../../utils/mctabs.js?ver=
|
7 |
-
<script type="text/javascript" src="../../utils/form_utils.js?ver=
|
8 |
-
<script type="text/javascript" src="../../utils/editable_selects.js?ver=
|
9 |
-
<script type="text/javascript" src="js/element_common.js?ver=
|
10 |
-
<script type="text/javascript" src="js/ins.js?ver=
|
11 |
-
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=
|
12 |
</head>
|
13 |
-
<body id="xhtmlxtrasins" style="display: none">
|
|
|
14 |
<form onsubmit="insertIns();return false;" action="#">
|
15 |
<div class="tabs">
|
16 |
<ul>
|
17 |
-
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
18 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
19 |
</ul>
|
20 |
</div>
|
@@ -23,19 +24,19 @@
|
|
23 |
<div id="general_panel" class="panel current">
|
24 |
<fieldset>
|
25 |
<legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
|
26 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
27 |
<tr>
|
28 |
<td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
|
29 |
<td>
|
30 |
-
<table border="0" cellspacing="0" cellpadding="0">
|
31 |
<tr>
|
32 |
<td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
|
33 |
-
<td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
|
34 |
</tr>
|
35 |
</table>
|
36 |
</td>
|
37 |
</tr>
|
38 |
-
<tr>
|
39 |
<td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
|
40 |
<td><input id="cite" name="cite" type="text" value="" class="field" /></td>
|
41 |
</tr>
|
@@ -43,9 +44,9 @@
|
|
43 |
</fieldset>
|
44 |
<fieldset>
|
45 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
46 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
47 |
<tr>
|
48 |
-
<td
|
49 |
<td><input id="title" name="title" type="text" value="" class="field" /></td>
|
50 |
</tr>
|
51 |
<tr>
|
@@ -61,7 +62,7 @@
|
|
61 |
</td>
|
62 |
</tr>
|
63 |
<tr>
|
64 |
-
<td class="label"><label id="stylelabel" for="
|
65 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
66 |
</tr>
|
67 |
<tr>
|
@@ -87,7 +88,7 @@
|
|
87 |
<fieldset>
|
88 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
89 |
|
90 |
-
<table border="0" cellpadding="0" cellspacing="4">
|
91 |
<tr>
|
92 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
93 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
@@ -152,18 +153,10 @@
|
|
152 |
</div>
|
153 |
</div>
|
154 |
<div class="mceActionPanel">
|
155 |
-
<
|
156 |
-
|
157 |
-
|
158 |
-
<div style="float: left">
|
159 |
-
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" />
|
160 |
-
</div>
|
161 |
-
<div style="float: right">
|
162 |
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
163 |
-
</div>
|
164 |
</div>
|
165 |
-
|
166 |
</form>
|
167 |
-
|
168 |
</body>
|
169 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
<head>
|
4 |
<title>{#xhtmlxtras_dlg.title_ins_element}</title>
|
5 |
+
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=342"></script>
|
6 |
+
<script type="text/javascript" src="../../utils/mctabs.js?ver=342"></script>
|
7 |
+
<script type="text/javascript" src="../../utils/form_utils.js?ver=342"></script>
|
8 |
+
<script type="text/javascript" src="../../utils/editable_selects.js?ver=342"></script>
|
9 |
+
<script type="text/javascript" src="js/element_common.js?ver=342"></script>
|
10 |
+
<script type="text/javascript" src="js/ins.js?ver=342"></script>
|
11 |
+
<link rel="stylesheet" type="text/css" href="css/popup.css?ver=342" />
|
12 |
</head>
|
13 |
+
<body id="xhtmlxtrasins" style="display: none" role="application" aria-labelledby="app_title">
|
14 |
+
<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_ins_element}</span>
|
15 |
<form onsubmit="insertIns();return false;" action="#">
|
16 |
<div class="tabs">
|
17 |
<ul>
|
18 |
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
|
19 |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
|
20 |
</ul>
|
21 |
</div>
|
24 |
<div id="general_panel" class="panel current">
|
25 |
<fieldset>
|
26 |
<legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
|
27 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
28 |
<tr>
|
29 |
<td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
|
30 |
<td>
|
31 |
+
<table role="presentation" border="0" cellspacing="0" cellpadding="0">
|
32 |
<tr>
|
33 |
<td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
|
34 |
+
<td ><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse" role="button" aria-labelledby="datetimelabel"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
|
35 |
</tr>
|
36 |
</table>
|
37 |
</td>
|
38 |
</tr>
|
39 |
+
<tr >
|
40 |
<td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
|
41 |
<td><input id="cite" name="cite" type="text" value="" class="field" /></td>
|
42 |
</tr>
|
44 |
</fieldset>
|
45 |
<fieldset>
|
46 |
<legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
|
47 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
48 |
<tr>
|
49 |
+
<td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
|
50 |
<td><input id="title" name="title" type="text" value="" class="field" /></td>
|
51 |
</tr>
|
52 |
<tr>
|
62 |
</td>
|
63 |
</tr>
|
64 |
<tr>
|
65 |
+
<td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
|
66 |
<td><input id="style" name="style" type="text" value="" class="field" /></td>
|
67 |
</tr>
|
68 |
<tr>
|
88 |
<fieldset>
|
89 |
<legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
|
90 |
|
91 |
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
92 |
<tr>
|
93 |
<td class="label"><label for="onfocus">onfocus</label>:</td>
|
94 |
<td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
|
153 |
</div>
|
154 |
</div>
|
155 |
<div class="mceActionPanel">
|
156 |
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
157 |
+
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" />
|
158 |
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
|
|
160 |
</form>
|
|
|
161 |
</body>
|
162 |
</html>
|
mce/xhtmlxtras/js/attributes.js
CHANGED
@@ -53,7 +53,6 @@ function insertAction() {
|
|
53 |
var inst = tinyMCEPopup.editor;
|
54 |
var elm = inst.selection.getNode();
|
55 |
|
56 |
-
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
57 |
setAllAttribs(elm);
|
58 |
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
59 |
tinyMCEPopup.close();
|
@@ -72,21 +71,7 @@ function setAttrib(elm, attrib, value) {
|
|
72 |
value = valueElm.value;
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
dom.setAttrib(elm, attrib.toLowerCase(), value);
|
77 |
-
|
78 |
-
if (attrib == "style")
|
79 |
-
attrib = "style.cssText";
|
80 |
-
|
81 |
-
if (attrib.substring(0, 2) == 'on')
|
82 |
-
value = 'return true;' + value;
|
83 |
-
|
84 |
-
if (attrib == "class")
|
85 |
-
attrib = "className";
|
86 |
-
|
87 |
-
elm[attrib]=value;
|
88 |
-
} else
|
89 |
-
elm.removeAttribute(attrib);
|
90 |
}
|
91 |
|
92 |
function setAllAttribs(elm) {
|
53 |
var inst = tinyMCEPopup.editor;
|
54 |
var elm = inst.selection.getNode();
|
55 |
|
|
|
56 |
setAllAttribs(elm);
|
57 |
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
58 |
tinyMCEPopup.close();
|
71 |
value = valueElm.value;
|
72 |
}
|
73 |
|
74 |
+
dom.setAttrib(elm, attrib.toLowerCase(), value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
function setAllAttribs(elm) {
|
mce/xhtmlxtras/js/del.js
CHANGED
@@ -21,17 +21,17 @@ function setElementAttribs(elm) {
|
|
21 |
setAllCommonAttribs(elm);
|
22 |
setAttrib(elm, 'datetime');
|
23 |
setAttrib(elm, 'cite');
|
|
|
24 |
}
|
25 |
|
26 |
function insertDel() {
|
27 |
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
|
28 |
|
29 |
-
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
30 |
if (elm == null) {
|
31 |
var s = SXE.inst.selection.getContent();
|
32 |
if(s.length > 0) {
|
33 |
insertInlineElement('del');
|
34 |
-
var elementArray =
|
35 |
for (var i=0; i<elementArray.length; i++) {
|
36 |
var elm = elementArray[i];
|
37 |
setElementAttribs(elm);
|
@@ -45,16 +45,6 @@ function insertDel() {
|
|
45 |
tinyMCEPopup.close();
|
46 |
}
|
47 |
|
48 |
-
function insertInlineElement(en) {
|
49 |
-
var ed = tinyMCEPopup.editor, dom = ed.dom;
|
50 |
-
|
51 |
-
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
52 |
-
tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
|
53 |
-
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
54 |
-
dom.replace(dom.create(en), n, 1);
|
55 |
-
});
|
56 |
-
}
|
57 |
-
|
58 |
function removeDel() {
|
59 |
SXE.removeElement('del');
|
60 |
tinyMCEPopup.close();
|
21 |
setAllCommonAttribs(elm);
|
22 |
setAttrib(elm, 'datetime');
|
23 |
setAttrib(elm, 'cite');
|
24 |
+
elm.removeAttribute('data-mce-new');
|
25 |
}
|
26 |
|
27 |
function insertDel() {
|
28 |
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
|
29 |
|
|
|
30 |
if (elm == null) {
|
31 |
var s = SXE.inst.selection.getContent();
|
32 |
if(s.length > 0) {
|
33 |
insertInlineElement('del');
|
34 |
+
var elementArray = SXE.inst.dom.select('del[data-mce-new]');
|
35 |
for (var i=0; i<elementArray.length; i++) {
|
36 |
var elm = elementArray[i];
|
37 |
setElementAttribs(elm);
|
45 |
tinyMCEPopup.close();
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
function removeDel() {
|
49 |
SXE.removeElement('del');
|
50 |
tinyMCEPopup.close();
|
mce/xhtmlxtras/js/element_common.js
CHANGED
@@ -154,7 +154,6 @@ SXE.initElementDialog = function(element_name) {
|
|
154 |
SXE.insertElement = function(element_name) {
|
155 |
var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName;
|
156 |
|
157 |
-
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
158 |
if (elm == null) {
|
159 |
var s = SXE.inst.selection.getContent();
|
160 |
if(s.length > 0) {
|
@@ -165,11 +164,11 @@ SXE.insertElement = function(element_name) {
|
|
165 |
for (var i=0; i<elementArray.length; i++) {
|
166 |
var elm = elementArray[i];
|
167 |
|
168 |
-
if (SXE.inst.dom.getAttrib(elm, '
|
169 |
elm.id = '';
|
170 |
elm.setAttribute('id', '');
|
171 |
elm.removeAttribute('id');
|
172 |
-
elm.removeAttribute('
|
173 |
|
174 |
setAllCommonAttribs(elm);
|
175 |
}
|
@@ -186,7 +185,6 @@ SXE.removeElement = function(element_name){
|
|
186 |
element_name = element_name.toLowerCase();
|
187 |
elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
|
188 |
if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
|
189 |
-
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
190 |
tinyMCE.execCommand('mceRemoveNode', false, elm);
|
191 |
SXE.inst.nodeChanged();
|
192 |
tinyMCEPopup.execCommand('mceEndUndoLevel');
|
@@ -226,6 +224,6 @@ function insertInlineElement(en) {
|
|
226 |
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
227 |
tinymce.each(dom.select('span,font'), function(n) {
|
228 |
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
229 |
-
dom.replace(dom.create(en, {
|
230 |
});
|
231 |
}
|
154 |
SXE.insertElement = function(element_name) {
|
155 |
var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName;
|
156 |
|
|
|
157 |
if (elm == null) {
|
158 |
var s = SXE.inst.selection.getContent();
|
159 |
if(s.length > 0) {
|
164 |
for (var i=0; i<elementArray.length; i++) {
|
165 |
var elm = elementArray[i];
|
166 |
|
167 |
+
if (SXE.inst.dom.getAttrib(elm, 'data-mce-new')) {
|
168 |
elm.id = '';
|
169 |
elm.setAttribute('id', '');
|
170 |
elm.removeAttribute('id');
|
171 |
+
elm.removeAttribute('data-mce-new');
|
172 |
|
173 |
setAllCommonAttribs(elm);
|
174 |
}
|
185 |
element_name = element_name.toLowerCase();
|
186 |
elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
|
187 |
if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
|
|
|
188 |
tinyMCE.execCommand('mceRemoveNode', false, elm);
|
189 |
SXE.inst.nodeChanged();
|
190 |
tinyMCEPopup.execCommand('mceEndUndoLevel');
|
224 |
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
225 |
tinymce.each(dom.select('span,font'), function(n) {
|
226 |
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
227 |
+
dom.replace(dom.create(en, {'data-mce-new' : 1}), n, 1);
|
228 |
});
|
229 |
}
|
mce/xhtmlxtras/js/ins.js
CHANGED
@@ -21,16 +21,17 @@ function setElementAttribs(elm) {
|
|
21 |
setAllCommonAttribs(elm);
|
22 |
setAttrib(elm, 'datetime');
|
23 |
setAttrib(elm, 'cite');
|
|
|
24 |
}
|
25 |
|
26 |
function insertIns() {
|
27 |
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');
|
28 |
-
|
29 |
if (elm == null) {
|
30 |
var s = SXE.inst.selection.getContent();
|
31 |
if(s.length > 0) {
|
32 |
-
insertInlineElement('
|
33 |
-
var elementArray =
|
34 |
for (var i=0; i<elementArray.length; i++) {
|
35 |
var elm = elementArray[i];
|
36 |
setElementAttribs(elm);
|
@@ -49,14 +50,4 @@ function removeIns() {
|
|
49 |
tinyMCEPopup.close();
|
50 |
}
|
51 |
|
52 |
-
function insertInlineElement(en) {
|
53 |
-
var ed = tinyMCEPopup.editor, dom = ed.dom;
|
54 |
-
|
55 |
-
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
56 |
-
tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
|
57 |
-
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
58 |
-
dom.replace(dom.create(en), n, 1);
|
59 |
-
});
|
60 |
-
}
|
61 |
-
|
62 |
tinyMCEPopup.onInit.add(init);
|
21 |
setAllCommonAttribs(elm);
|
22 |
setAttrib(elm, 'datetime');
|
23 |
setAttrib(elm, 'cite');
|
24 |
+
elm.removeAttribute('data-mce-new');
|
25 |
}
|
26 |
|
27 |
function insertIns() {
|
28 |
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');
|
29 |
+
|
30 |
if (elm == null) {
|
31 |
var s = SXE.inst.selection.getContent();
|
32 |
if(s.length > 0) {
|
33 |
+
insertInlineElement('ins');
|
34 |
+
var elementArray = SXE.inst.dom.select('ins[data-mce-new]');
|
35 |
for (var i=0; i<elementArray.length; i++) {
|
36 |
var elm = elementArray[i];
|
37 |
setElementAttribs(elm);
|
50 |
tinyMCEPopup.close();
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
tinyMCEPopup.onInit.add(init);
|
readme.txt
CHANGED
@@ -2,17 +2,17 @@
|
|
2 |
Contributors: azaozz
|
3 |
Donate link:
|
4 |
Tags: wysiwyg, formatting, tinymce, write, editor
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
Attention: if you are using customized tadv-mce.css and are updating to version 3.3.9.1 or newer, see the release notes.
|
14 |
|
15 |
-
This plugin adds
|
16 |
|
17 |
**Language Support:** The plugin interface in only in English, but the TinyMCE plugins include several translations: German, French, Italian, Spanish, Portuguese, Russian, Chinese and Japanese. More translations are available at the [TinyMCE web site](http://tinymce.moxiecode.com/download_i18n.php).
|
18 |
|
@@ -41,6 +41,9 @@ This plugin adds 17 plugins to [TinyMCE](http://tinymce.moxiecode.com/): Advance
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
44 |
= 3.3.9.1 =
|
45 |
Added advanced options: stop removing iframes, stop removing HTML 5.0 elements, moved the support for custom editor styles to editor-style.css in the current theme.
|
46 |
|
@@ -89,7 +92,7 @@ Log out of WordPress, clear your browser cache, quit and restart the browser and
|
|
89 |
|
90 |
= When I add "Smilies", they do not show in the editor. =
|
91 |
|
92 |
-
The "Emotions" button in TinyMCE adds the codes for the smilies. The actual images are added by WordPress when viewing the Post
|
93 |
|
94 |
= The plugin does not add any buttons. =
|
95 |
|
@@ -97,7 +100,7 @@ Make sure the "Disable the visual editor when writing" checkbox under "Users - Y
|
|
97 |
|
98 |
= I still see the "old" buttons in the editor =
|
99 |
|
100 |
-
Click the "Remove Settings" button on the plugin settings page and then
|
101 |
|
102 |
= Other questions? More screenshots? =
|
103 |
|
2 |
Contributors: azaozz
|
3 |
Donate link:
|
4 |
Tags: wysiwyg, formatting, tinymce, write, editor
|
5 |
+
Requires at least: 3.2
|
6 |
+
Tested up to: 3.2
|
7 |
+
Stable tag: 3.4.2
|
8 |
|
9 |
Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
Attention: if you are using customized tadv-mce.css and are updating from version 3.3.9 or earlier to version 3.3.9.1 or newer, see the release notes.
|
14 |
|
15 |
+
This plugin adds 16 plugins to [TinyMCE](http://tinymce.moxiecode.com/): Advanced HR, Advanced Image, Advanced Link, Advanced List, Context Menu, Emotions (Smilies), Date and Time, IESpell, Layer, Nonbreaking, Print, Search and Replace, Style, Table, Visual Characters and XHTML Extras.
|
16 |
|
17 |
**Language Support:** The plugin interface in only in English, but the TinyMCE plugins include several translations: German, French, Italian, Spanish, Portuguese, Russian, Chinese and Japanese. More translations are available at the [TinyMCE web site](http://tinymce.moxiecode.com/download_i18n.php).
|
18 |
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 3.4.2 =
|
45 |
+
Compatibility with WordPress 3.2 and TinyMCE 3.4.2, removed the options for suport for iframe and HTML 5.0 elements as they are supported by default in WordPress 3.2, removed the *media* plugin as it is included by default.
|
46 |
+
|
47 |
= 3.3.9.1 =
|
48 |
Added advanced options: stop removing iframes, stop removing HTML 5.0 elements, moved the support for custom editor styles to editor-style.css in the current theme.
|
49 |
|
92 |
|
93 |
= When I add "Smilies", they do not show in the editor. =
|
94 |
|
95 |
+
The "Emotions" button in TinyMCE adds the codes for the smilies. The actual images are added by WordPress when viewing the Post. Make sure the checkbox "Convert emoticons to graphics on display" in "Options - Writing" is checked.
|
96 |
|
97 |
= The plugin does not add any buttons. =
|
98 |
|
100 |
|
101 |
= I still see the "old" buttons in the editor =
|
102 |
|
103 |
+
Click the "Remove Settings" button on the plugin settings page and then set the buttons again and save.
|
104 |
|
105 |
= Other questions? More screenshots? =
|
106 |
|
screenshot-1.jpg
ADDED
Binary file
|
screenshot-1.png
DELETED
Binary file
|
tadv_admin.php
CHANGED
@@ -62,8 +62,6 @@ if ( isset( $_POST['tadv-save'] ) ) {
|
|
62 |
$tadv_options['advlist'] = $_POST['advlist'] ? 1 : 0;
|
63 |
$tadv_options['contextmenu'] = $_POST['contextmenu'] ? 1 : 0;
|
64 |
|
65 |
-
$tadv_options['iframe'] = $_POST['iframe'] ? 1 : 0;
|
66 |
-
$tadv_options['html5'] = $_POST['html5'] ? 1 : 0;
|
67 |
$tadv_options['editorstyle'] = $_POST['editorstyle'] ? 1 : 0;
|
68 |
$tadv_options['hideclasses'] = $_POST['hideclasses'] ? 1 : 0;
|
69 |
$tadv_options['no_autop'] = $_POST['no_autop'] ? 1 : 0;
|
@@ -116,7 +114,6 @@ if ( empty($toolbar_1) && empty($toolbar_2) && empty($toolbar_3) && empty($toolb
|
|
116 |
$allbtns = array_merge( $toolbar_1, $toolbar_2, $toolbar_3, $toolbar_4 );
|
117 |
}
|
118 |
|
119 |
-
if ( in_array('media', $allbtns) ) $plugins[] = 'media';
|
120 |
if ( in_array('advhr', $allbtns) ) $plugins[] = 'advhr';
|
121 |
if ( in_array('insertlayer', $allbtns) ) $plugins[] = 'layer';
|
122 |
if ( in_array('visualchars', $allbtns) ) $plugins[] = 'visualchars';
|
@@ -145,7 +142,7 @@ if ( $tadv_options['advlist'] == '1' ) $plugins[] = 'advlist';
|
|
145 |
if ( $tadv_options['advimage'] == '1' ) $plugins[] = 'advimage';
|
146 |
if ( $tadv_options['contextmenu'] == '1' ) $plugins[] = 'contextmenu';
|
147 |
|
148 |
-
$buttons = array( 'Hide next row' => 'wp_adv', 'Quote' => 'blockquote', 'Bold' => 'bold', 'Italic' => 'italic', 'Strikethrough' => 'strikethrough', 'Underline' => 'underline', 'Bullet List' => 'bullist', 'Numbered List' => 'numlist', 'Outdent' => 'outdent', 'Indent' => 'indent', 'Allign Left' => 'justifyleft', 'Center' => 'justifycenter', 'Alligh Right' => 'justifyright', 'Justify' => 'justifyfull', 'Cut' => 'cut', 'Copy' => 'copy', 'Paste' => 'paste', 'Link' => 'link', 'Remove Link' => 'unlink', 'Insert Image' => 'image', 'More Tag' => 'wp_more', 'Split Page' => 'wp_page', 'Search' => 'search', 'Replace' => 'replace', '<!--fontselect-->' => 'fontselect', '<!--fontsizeselect-->' => 'fontsizeselect', 'Help' => 'wp_help', 'Full Screen' => 'fullscreen', '<!--styleselect-->' => 'styleselect', '<!--formatselect-->' => 'formatselect', 'Text Color' => 'forecolor', 'Back Color' => 'backcolor', 'Paste as Text' => 'pastetext', 'Paste from Word' => 'pasteword', 'Remove Format' => 'removeformat', 'Clean Code' => 'cleanup', 'Check Spelling' => 'spellchecker', 'Character Map' => 'charmap', 'Print' => 'print', 'Undo' => 'undo', 'Redo' => 'redo', 'Table' => 'tablecontrols', 'Citation' => 'cite', 'Inserted Text' => 'ins', 'Deleted Text' => 'del', 'Abbreviation' => 'abbr', 'Acronym' => 'acronym', 'XHTML Attribs' => 'attribs', 'Layer' => 'layer', 'Advanced HR' => 'advhr', 'View HTML' => 'code', 'Hidden Chars' => 'visualchars', 'NB Space' => 'nonbreaking', 'Sub' => 'sub', 'Sup' => 'sup', 'Visual Aids' => 'visualaid', 'Insert Date' => 'insertdate', 'Insert Time' => 'inserttime', 'Anchor' => 'anchor', 'Style' => 'styleprops', 'Smilies' => 'emotions', 'Insert Movie' => 'media', 'IE Spell' => 'iespell' );
|
149 |
|
150 |
if ( function_exists('moxiecode_plugins_url') ) {
|
151 |
if ( moxiecode_plugins_url('imagemanager') ) $buttons['MCFileManager'] = 'insertimage';
|
@@ -340,10 +337,6 @@ if ( is_array($buttons) ) {
|
|
340 |
<p><input type="checkbox" class="tadv-chk" name="editorstyle" id="editorstyle" <?php if ( $tadv_options['editorstyle'] == '1' ) echo ' checked="checked"'; ?> /> <label for="editorstyle" class="tadv-box"><?php _e('Import editor-style.css.', 'tadv'); ?></label> <?php _e('This is only needed if you created that file. Themes that style the editor will import the stylesheet automatically.', 'tadv'); ?></p>
|
341 |
<?php } ?>
|
342 |
|
343 |
-
<p><input type="checkbox" class="tadv-chk" name="iframe" id="iframe" <?php if ( $tadv_options['iframe'] == '1' ) echo ' checked="checked"'; ?> /> <label for="iframe" class="tadv-box"><?php _e('Do not remove IFRAME tags.', 'tadv'); ?></label> <?php _e('This will allow you to paste the new style video embed code from Vimeo and YouTube. Note that this may be a security concern if pasting arbitrary HTML.', 'tadv'); ?></p>
|
344 |
-
|
345 |
-
<p><input type="checkbox" class="tadv-chk" name="html5" id="html5" <?php if ( $tadv_options['html5'] == '1' ) echo ' checked="checked"'; ?> /> <label for="html5" class="tadv-box"><?php _e('Do not remove HTML 5.0 tags.', 'tadv'); ?></label> <?php _e('This will stop the visual editor from removing HTML 5.0 tags when serializing the code. However only some browsers support some of these tags so the editor may behave unexpectedly depending on your browser and its version.', 'tadv'); ?></p>
|
346 |
-
|
347 |
<p><input type="checkbox" class="tadv-chk" name="hideclasses" id="hideclasses" <?php if ( $tadv_options['hideclasses'] == '1' ) echo ' checked="checked"'; ?> /> <label for="hideclasses" class="tadv-box"><?php _e('Hide all CSS classes in the editor menus.', 'tadv'); ?></label> <?php _e('Note that selecting this will also disable the Styles drop-down menu.', 'tadv'); ?></p>
|
348 |
|
349 |
<p><input type="checkbox" class="tadv-chk" name="no_autop" id="no_autop" <?php if ( $tadv_options['no_autop'] == '1' ) echo ' checked="checked"'; ?> /> <label for="no_autop" class="tadv-box"><?php _e('Stop removing the <p> and <br /> tags when saving and show them in the HTML editor', 'tadv'); ?></label> <?php _e('This will make it possible to use more advanced coding in the HTML editor without the back-end filtering affecting it much. However it may behave unexpectedly in rare cases, so test it thoroughly before enabling it permanently. Also line breaks in the HTML editor would still affect the output, in particular do not use empty lines, line breaks inside HTML tags or multiple <br /> tags.', 'tadv'); ?></p>
|
62 |
$tadv_options['advlist'] = $_POST['advlist'] ? 1 : 0;
|
63 |
$tadv_options['contextmenu'] = $_POST['contextmenu'] ? 1 : 0;
|
64 |
|
|
|
|
|
65 |
$tadv_options['editorstyle'] = $_POST['editorstyle'] ? 1 : 0;
|
66 |
$tadv_options['hideclasses'] = $_POST['hideclasses'] ? 1 : 0;
|
67 |
$tadv_options['no_autop'] = $_POST['no_autop'] ? 1 : 0;
|
114 |
$allbtns = array_merge( $toolbar_1, $toolbar_2, $toolbar_3, $toolbar_4 );
|
115 |
}
|
116 |
|
|
|
117 |
if ( in_array('advhr', $allbtns) ) $plugins[] = 'advhr';
|
118 |
if ( in_array('insertlayer', $allbtns) ) $plugins[] = 'layer';
|
119 |
if ( in_array('visualchars', $allbtns) ) $plugins[] = 'visualchars';
|
142 |
if ( $tadv_options['advimage'] == '1' ) $plugins[] = 'advimage';
|
143 |
if ( $tadv_options['contextmenu'] == '1' ) $plugins[] = 'contextmenu';
|
144 |
|
145 |
+
$buttons = array( 'Horizontal rule' => 'hr', 'Hide next row' => 'wp_adv', 'Quote' => 'blockquote', 'Bold' => 'bold', 'Italic' => 'italic', 'Strikethrough' => 'strikethrough', 'Underline' => 'underline', 'Bullet List' => 'bullist', 'Numbered List' => 'numlist', 'Outdent' => 'outdent', 'Indent' => 'indent', 'Allign Left' => 'justifyleft', 'Center' => 'justifycenter', 'Alligh Right' => 'justifyright', 'Justify' => 'justifyfull', 'Cut' => 'cut', 'Copy' => 'copy', 'Paste' => 'paste', 'Link' => 'link', 'Remove Link' => 'unlink', 'Insert Image' => 'image', 'More Tag' => 'wp_more', 'Split Page' => 'wp_page', 'Search' => 'search', 'Replace' => 'replace', '<!--fontselect-->' => 'fontselect', '<!--fontsizeselect-->' => 'fontsizeselect', 'Help' => 'wp_help', 'Full Screen' => 'fullscreen', '<!--styleselect-->' => 'styleselect', '<!--formatselect-->' => 'formatselect', 'Text Color' => 'forecolor', 'Back Color' => 'backcolor', 'Paste as Text' => 'pastetext', 'Paste from Word' => 'pasteword', 'Remove Format' => 'removeformat', 'Clean Code' => 'cleanup', 'Check Spelling' => 'spellchecker', 'Character Map' => 'charmap', 'Print' => 'print', 'Undo' => 'undo', 'Redo' => 'redo', 'Table' => 'tablecontrols', 'Citation' => 'cite', 'Inserted Text' => 'ins', 'Deleted Text' => 'del', 'Abbreviation' => 'abbr', 'Acronym' => 'acronym', 'XHTML Attribs' => 'attribs', 'Layer' => 'layer', 'Advanced HR' => 'advhr', 'View HTML' => 'code', 'Hidden Chars' => 'visualchars', 'NB Space' => 'nonbreaking', 'Sub' => 'sub', 'Sup' => 'sup', 'Visual Aids' => 'visualaid', 'Insert Date' => 'insertdate', 'Insert Time' => 'inserttime', 'Anchor' => 'anchor', 'Style' => 'styleprops', 'Smilies' => 'emotions', 'Insert Movie' => 'media', 'IE Spell' => 'iespell' );
|
146 |
|
147 |
if ( function_exists('moxiecode_plugins_url') ) {
|
148 |
if ( moxiecode_plugins_url('imagemanager') ) $buttons['MCFileManager'] = 'insertimage';
|
337 |
<p><input type="checkbox" class="tadv-chk" name="editorstyle" id="editorstyle" <?php if ( $tadv_options['editorstyle'] == '1' ) echo ' checked="checked"'; ?> /> <label for="editorstyle" class="tadv-box"><?php _e('Import editor-style.css.', 'tadv'); ?></label> <?php _e('This is only needed if you created that file. Themes that style the editor will import the stylesheet automatically.', 'tadv'); ?></p>
|
338 |
<?php } ?>
|
339 |
|
|
|
|
|
|
|
|
|
340 |
<p><input type="checkbox" class="tadv-chk" name="hideclasses" id="hideclasses" <?php if ( $tadv_options['hideclasses'] == '1' ) echo ' checked="checked"'; ?> /> <label for="hideclasses" class="tadv-box"><?php _e('Hide all CSS classes in the editor menus.', 'tadv'); ?></label> <?php _e('Note that selecting this will also disable the Styles drop-down menu.', 'tadv'); ?></p>
|
341 |
|
342 |
<p><input type="checkbox" class="tadv-chk" name="no_autop" id="no_autop" <?php if ( $tadv_options['no_autop'] == '1' ) echo ' checked="checked"'; ?> /> <label for="no_autop" class="tadv-box"><?php _e('Stop removing the <p> and <br /> tags when saving and show them in the HTML editor', 'tadv'); ?></label> <?php _e('This will make it possible to use more advanced coding in the HTML editor without the back-end filtering affecting it much. However it may behave unexpectedly in rare cases, so test it thoroughly before enabling it permanently. Also line breaks in the HTML editor would still affect the output, in particular do not use empty lines, line breaks inside HTML tags or multiple <br /> tags.', 'tadv'); ?></p>
|
tadv_defaults.php
CHANGED
@@ -5,7 +5,7 @@ $tadv_options = array( 'advlink1' => 0, 'advimage' => 1, 'editorstyle' => 0, 'hi
|
|
5 |
$tadv_plugins = array( 'style', 'emotions', 'print', 'searchreplace', 'xhtmlxtras', 'advimage' );
|
6 |
|
7 |
$tadv_toolbars = array(
|
8 |
-
'toolbar_1' => array( 'bold', 'italic', 'strikethrough', 'underline', 'separator1', 'bullist', 'numlist', 'outdent', 'indent', 'separator2', 'justifyleft', 'justifycenter', 'justifyright', 'separator3', 'link', 'unlink', 'separator4', 'image', 'styleprops', 'separator12', 'wp_more', 'wp_page', 'separator5', 'spellchecker', 'search', 'separator6', 'fullscreen'
|
9 |
'toolbar_2' => array( 'fontsizeselect', 'formatselect', 'pastetext', 'pasteword', 'removeformat', 'separator8', 'charmap', 'print', 'separator9', 'forecolor', 'backcolor', 'emotions', 'separator10', 'sup', 'sub', 'media', 'separator11', 'undo', 'redo', 'attribs', 'wp_help' ),
|
10 |
'toolbar_3' => array(),
|
11 |
'toolbar_4' => array()
|
5 |
$tadv_plugins = array( 'style', 'emotions', 'print', 'searchreplace', 'xhtmlxtras', 'advimage' );
|
6 |
|
7 |
$tadv_toolbars = array(
|
8 |
+
'toolbar_1' => array( 'bold', 'italic', 'strikethrough', 'underline', 'separator1', 'bullist', 'numlist', 'outdent', 'indent', 'separator2', 'justifyleft', 'justifycenter', 'justifyright', 'separator3', 'link', 'unlink', 'separator4', 'image', 'styleprops', 'separator12', 'wp_more', 'wp_page', 'separator5', 'spellchecker', 'search', 'separator6', 'fullscreen' ),
|
9 |
'toolbar_2' => array( 'fontsizeselect', 'formatselect', 'pastetext', 'pasteword', 'removeformat', 'separator8', 'charmap', 'print', 'separator9', 'forecolor', 'backcolor', 'emotions', 'separator10', 'sup', 'sub', 'media', 'separator11', 'undo', 'redo', 'attribs', 'wp_help' ),
|
10 |
'toolbar_3' => array(),
|
11 |
'toolbar_4' => array()
|
tiny_mce_popup.js
CHANGED
@@ -2,4 +2,4 @@
|
|
2 |
// Uncomment and change this document.domain value if you are loading the script cross subdomains
|
3 |
// document.domain = 'moxiecode.com';
|
4 |
|
5 |
-
var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},
|
2 |
// Uncomment and change this document.domain value if you are loading the script cross subdomains
|
3 |
// document.domain = 'moxiecode.com';
|
4 |
|
5 |
+
var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},10)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg("plugin_url")||b.getWindowArg("theme_url");if(a&&b.editor.settings.language&&b.features.translate_i18n!==false&&b.editor.settings.language_load!==false){a+="/langs/"+b.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(a)){document.write('<script type="text/javascript" src="'+tinymce._addVer(a)+'"><\/script>');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand("mceColorPicker",true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName=="INPUT"&&(a.type=="submit"||a.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.domLoaded){return}b.domLoaded=1;if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=b.editor.getParam("directionality","");if((a=b.editor.translate(c))&&a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&&a!=d){document.title=d=a}}if(!b.editor.getParam("browser_preferred_colors",false)||!b.isWindow){b.dom.addClass(document.body,"forceColors")}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}b.restoreSelection();b.resizeToInnerSize();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&&!b.isWindow){tinymce.dom.Event._add(document,"focus",function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select("select"),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,"mceFocus")&&!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){a=a.target||a.srcElement;if(a.onchange){a.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_wait:function(){if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);tinyMCEPopup._onDOMLoaded()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(tinyMCEPopup.domLoaded){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}tinyMCEPopup._onDOMLoaded()})()}document.attachEvent("onload",tinyMCEPopup._onDOMLoaded)}else{if(document.addEventListener){window.addEventListener("DOMContentLoaded",tinyMCEPopup._onDOMLoaded,false);window.addEventListener("load",tinyMCEPopup._onDOMLoaded,false)}}}};tinyMCEPopup.init();tinyMCEPopup._wait();
|
tinymce-advanced.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: TinyMCE Advanced
|
4 |
Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
|
5 |
Description: Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
|
6 |
-
Version: 3.
|
7 |
Author: Andrew Ozz
|
8 |
Author URI: http://www.laptoptips.ca/
|
9 |
|
@@ -36,8 +36,8 @@ if ( ! function_exists('tadv_paths') ) {
|
|
36 |
if ( ! function_exists('tadv_add_scripts') ) {
|
37 |
function tadv_add_scripts($page) {
|
38 |
if ( 'settings_page_tinymce-advanced' == $page ) {
|
39 |
-
wp_enqueue_script( 'tadv-js', TADV_URL . 'js/tadv.js', array('jquery-ui-sortable'), '3.
|
40 |
-
wp_enqueue_style( 'tadv-css', TADV_URL . 'css/tadv-styles.css', array(), '3.
|
41 |
}
|
42 |
}
|
43 |
} // end tadv_add_scripts
|
@@ -173,7 +173,6 @@ if ( ! function_exists('tadv_mce_options') ) {
|
|
173 |
function tadv_mce_options($init) {
|
174 |
global $tadv_hidden_row;
|
175 |
$tadv_options = get_option('tadv_options', array());
|
176 |
-
$ext_elements = '';
|
177 |
|
178 |
if ( $tadv_hidden_row > 0 )
|
179 |
$init['wordpress_adv_toolbar'] = 'toolbar' . $tadv_hidden_row;
|
@@ -186,20 +185,6 @@ if ( ! function_exists('tadv_mce_options') ) {
|
|
186 |
if ( isset($tadv_options['hideclasses']) && $tadv_options['hideclasses'] == 1 )
|
187 |
$init['class_filter'] = '[function(){return false;}]';
|
188 |
|
189 |
-
if ( isset($tadv_options['iframe']) && $tadv_options['iframe'] == 1 )
|
190 |
-
$ext_elements = ',iframe[*]';
|
191 |
-
|
192 |
-
if ( isset($tadv_options['html5']) && $tadv_options['html5'] == 1 )
|
193 |
-
$ext_elements .= ',article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],embed[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary,time[*],video[*],wbr';
|
194 |
-
|
195 |
-
if ( !empty($ext_elements) ) {
|
196 |
-
|
197 |
-
if ( !empty($init['extended_valid_elements']) )
|
198 |
-
$init['extended_valid_elements'] .= $ext_elements;
|
199 |
-
else
|
200 |
-
$init['extended_valid_elements'] = trim($ext_elements, ',');
|
201 |
-
}
|
202 |
-
|
203 |
return $init;
|
204 |
}
|
205 |
add_filter( 'tiny_mce_before_init', 'tadv_mce_options' );
|
@@ -271,7 +256,7 @@ square:"\u25a0"
|
|
271 |
//]]>
|
272 |
</script>
|
273 |
<?php
|
274 |
-
}
|
275 |
}
|
276 |
add_action( 'admin_print_footer_scripts', 'tmce_replace', 50 );
|
277 |
}
|
3 |
Plugin Name: TinyMCE Advanced
|
4 |
Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
|
5 |
Description: Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
|
6 |
+
Version: 3.4.2
|
7 |
Author: Andrew Ozz
|
8 |
Author URI: http://www.laptoptips.ca/
|
9 |
|
36 |
if ( ! function_exists('tadv_add_scripts') ) {
|
37 |
function tadv_add_scripts($page) {
|
38 |
if ( 'settings_page_tinymce-advanced' == $page ) {
|
39 |
+
wp_enqueue_script( 'tadv-js', TADV_URL . 'js/tadv.js', array('jquery-ui-sortable'), '3.4.2', true );
|
40 |
+
wp_enqueue_style( 'tadv-css', TADV_URL . 'css/tadv-styles.css', array(), '3.4.2' );
|
41 |
}
|
42 |
}
|
43 |
} // end tadv_add_scripts
|
173 |
function tadv_mce_options($init) {
|
174 |
global $tadv_hidden_row;
|
175 |
$tadv_options = get_option('tadv_options', array());
|
|
|
176 |
|
177 |
if ( $tadv_hidden_row > 0 )
|
178 |
$init['wordpress_adv_toolbar'] = 'toolbar' . $tadv_hidden_row;
|
185 |
if ( isset($tadv_options['hideclasses']) && $tadv_options['hideclasses'] == 1 )
|
186 |
$init['class_filter'] = '[function(){return false;}]';
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
return $init;
|
189 |
}
|
190 |
add_filter( 'tiny_mce_before_init', 'tadv_mce_options' );
|
256 |
//]]>
|
257 |
</script>
|
258 |
<?php
|
259 |
+
}
|
260 |
}
|
261 |
add_action( 'admin_print_footer_scripts', 'tmce_replace', 50 );
|
262 |
}
|
utils/form_utils.js
CHANGED
@@ -11,10 +11,14 @@
|
|
11 |
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
|
12 |
|
13 |
function getColorPickerHTML(id, target_form_element) {
|
14 |
-
var h = "";
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
|
19 |
return h;
|
20 |
}
|
@@ -67,6 +71,9 @@ function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
|
|
67 |
if (!form_obj || !form_obj.elements[field_name])
|
68 |
return;
|
69 |
|
|
|
|
|
|
|
70 |
var sel = form_obj.elements[field_name];
|
71 |
|
72 |
var found = false;
|
@@ -171,7 +178,7 @@ function convertHexToRGB(col) {
|
|
171 |
}
|
172 |
|
173 |
function trimSize(size) {
|
174 |
-
return size.replace(/([0-9\.]+)px
|
175 |
}
|
176 |
|
177 |
function getCSSSize(size) {
|
@@ -183,6 +190,9 @@ function getCSSSize(size) {
|
|
183 |
// Add px
|
184 |
if (/^[0-9]+$/.test(size))
|
185 |
size += 'px';
|
|
|
|
|
|
|
186 |
|
187 |
return size;
|
188 |
}
|
11 |
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
|
12 |
|
13 |
function getColorPickerHTML(id, target_form_element) {
|
14 |
+
var h = "", dom = tinyMCEPopup.dom;
|
15 |
|
16 |
+
if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
|
17 |
+
label.id = label.id || dom.uniqueId();
|
18 |
+
}
|
19 |
+
|
20 |
+
h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
|
21 |
+
h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> <span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
|
22 |
|
23 |
return h;
|
24 |
}
|
71 |
if (!form_obj || !form_obj.elements[field_name])
|
72 |
return;
|
73 |
|
74 |
+
if (!value)
|
75 |
+
value = "";
|
76 |
+
|
77 |
var sel = form_obj.elements[field_name];
|
78 |
|
79 |
var found = false;
|
178 |
}
|
179 |
|
180 |
function trimSize(size) {
|
181 |
+
return size.replace(/([0-9\.]+)(px|%|in|cm|mm|em|ex|pt|pc)/i, '$1$2');
|
182 |
}
|
183 |
|
184 |
function getCSSSize(size) {
|
190 |
// Add px
|
191 |
if (/^[0-9]+$/.test(size))
|
192 |
size += 'px';
|
193 |
+
// Sanity check, IE doesn't like broken values
|
194 |
+
else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size)))
|
195 |
+
return "";
|
196 |
|
197 |
return size;
|
198 |
}
|
utils/mctabs.js
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
|
11 |
function MCTabs() {
|
12 |
this.settings = [];
|
|
|
13 |
};
|
14 |
|
15 |
MCTabs.prototype.init = function(settings) {
|
@@ -28,26 +29,62 @@ MCTabs.prototype.getParam = function(name, default_value) {
|
|
28 |
return value;
|
29 |
};
|
30 |
|
31 |
-
MCTabs.prototype.
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
panelElm= document.getElementById(panel_id);
|
35 |
panelContainerElm = panelElm ? panelElm.parentNode : null;
|
36 |
-
tabElm = document.getElementById(tab_id);
|
37 |
tabContainerElm = tabElm ? tabElm.parentNode : null;
|
38 |
-
selectionClass =
|
39 |
|
40 |
if (tabElm && tabContainerElm) {
|
41 |
nodes = tabContainerElm.childNodes;
|
42 |
|
43 |
// Hide all other tabs
|
44 |
for (i = 0; i < nodes.length; i++) {
|
45 |
-
if (nodes[i].nodeName == "LI")
|
46 |
-
nodes[i]
|
|
|
47 |
}
|
48 |
|
49 |
// Show selected tab
|
50 |
-
tabElm
|
51 |
}
|
52 |
|
53 |
if (panelElm && panelContainerElm) {
|
@@ -56,11 +93,15 @@ MCTabs.prototype.displayTab = function(tab_id, panel_id) {
|
|
56 |
// Hide all other panels
|
57 |
for (i = 0; i < nodes.length; i++) {
|
58 |
if (nodes[i].nodeName == "DIV")
|
59 |
-
nodes[i]
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
|
62 |
// Show selected panel
|
63 |
-
panelElm
|
64 |
}
|
65 |
};
|
66 |
|
@@ -73,5 +114,49 @@ MCTabs.prototype.getAnchor = function() {
|
|
73 |
return "";
|
74 |
};
|
75 |
|
76 |
-
|
|
|
77 |
var mcTabs = new MCTabs();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
function MCTabs() {
|
12 |
this.settings = [];
|
13 |
+
this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
|
14 |
};
|
15 |
|
16 |
MCTabs.prototype.init = function(settings) {
|
29 |
return value;
|
30 |
};
|
31 |
|
32 |
+
MCTabs.prototype.showTab =function(tab){
|
33 |
+
tab.className = 'current';
|
34 |
+
tab.setAttribute("aria-selected", true);
|
35 |
+
tab.setAttribute("aria-expanded", true);
|
36 |
+
tab.tabIndex = 0;
|
37 |
+
};
|
38 |
+
|
39 |
+
MCTabs.prototype.hideTab =function(tab){
|
40 |
+
var t=this;
|
41 |
+
|
42 |
+
tab.className = '';
|
43 |
+
tab.setAttribute("aria-selected", false);
|
44 |
+
tab.setAttribute("aria-expanded", false);
|
45 |
+
tab.tabIndex = -1;
|
46 |
+
};
|
47 |
+
|
48 |
+
MCTabs.prototype.showPanel = function(panel) {
|
49 |
+
panel.className = 'current';
|
50 |
+
panel.setAttribute("aria-hidden", false);
|
51 |
+
};
|
52 |
+
|
53 |
+
MCTabs.prototype.hidePanel = function(panel) {
|
54 |
+
panel.className = 'panel';
|
55 |
+
panel.setAttribute("aria-hidden", true);
|
56 |
+
};
|
57 |
+
|
58 |
+
MCTabs.prototype.getPanelForTab = function(tabElm) {
|
59 |
+
return tinyMCEPopup.dom.getAttrib(tabElm, "aria-controls");
|
60 |
+
};
|
61 |
+
|
62 |
+
MCTabs.prototype.displayTab = function(tab_id, panel_id, avoid_focus) {
|
63 |
+
var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i, t = this;
|
64 |
+
|
65 |
+
tabElm = document.getElementById(tab_id);
|
66 |
+
|
67 |
+
if (panel_id === undefined) {
|
68 |
+
panel_id = t.getPanelForTab(tabElm);
|
69 |
+
}
|
70 |
|
71 |
panelElm= document.getElementById(panel_id);
|
72 |
panelContainerElm = panelElm ? panelElm.parentNode : null;
|
|
|
73 |
tabContainerElm = tabElm ? tabElm.parentNode : null;
|
74 |
+
selectionClass = t.getParam('selection_class', 'current');
|
75 |
|
76 |
if (tabElm && tabContainerElm) {
|
77 |
nodes = tabContainerElm.childNodes;
|
78 |
|
79 |
// Hide all other tabs
|
80 |
for (i = 0; i < nodes.length; i++) {
|
81 |
+
if (nodes[i].nodeName == "LI") {
|
82 |
+
t.hideTab(nodes[i]);
|
83 |
+
}
|
84 |
}
|
85 |
|
86 |
// Show selected tab
|
87 |
+
t.showTab(tabElm);
|
88 |
}
|
89 |
|
90 |
if (panelElm && panelContainerElm) {
|
93 |
// Hide all other panels
|
94 |
for (i = 0; i < nodes.length; i++) {
|
95 |
if (nodes[i].nodeName == "DIV")
|
96 |
+
t.hidePanel(nodes[i]);
|
97 |
+
}
|
98 |
+
|
99 |
+
if (!avoid_focus) {
|
100 |
+
tabElm.focus();
|
101 |
}
|
102 |
|
103 |
// Show selected panel
|
104 |
+
t.showPanel(panelElm);
|
105 |
}
|
106 |
};
|
107 |
|
114 |
return "";
|
115 |
};
|
116 |
|
117 |
+
|
118 |
+
//Global instance
|
119 |
var mcTabs = new MCTabs();
|
120 |
+
|
121 |
+
tinyMCEPopup.onInit.add(function() {
|
122 |
+
var tinymce = tinyMCEPopup.getWin().tinymce, dom = tinyMCEPopup.dom, each = tinymce.each;
|
123 |
+
|
124 |
+
each(dom.select('div.tabs'), function(tabContainerElm) {
|
125 |
+
var keyNav;
|
126 |
+
|
127 |
+
dom.setAttrib(tabContainerElm, "role", "tablist");
|
128 |
+
|
129 |
+
var items = tinyMCEPopup.dom.select('li', tabContainerElm);
|
130 |
+
var action = function(id) {
|
131 |
+
mcTabs.displayTab(id, mcTabs.getPanelForTab(id));
|
132 |
+
mcTabs.onChange.dispatch(id);
|
133 |
+
};
|
134 |
+
|
135 |
+
each(items, function(item) {
|
136 |
+
dom.setAttrib(item, 'role', 'tab');
|
137 |
+
dom.bind(item, 'click', function(evt) {
|
138 |
+
action(item.id);
|
139 |
+
});
|
140 |
+
});
|
141 |
+
|
142 |
+
dom.bind(dom.getRoot(), 'keydown', function(evt) {
|
143 |
+
if (evt.keyCode === 9 && evt.ctrlKey && !evt.altKey) { // Tab
|
144 |
+
keyNav.moveFocus(evt.shiftKey ? -1 : 1);
|
145 |
+
tinymce.dom.Event.cancel(evt);
|
146 |
+
}
|
147 |
+
});
|
148 |
+
|
149 |
+
each(dom.select('a', tabContainerElm), function(a) {
|
150 |
+
dom.setAttrib(a, 'tabindex', '-1');
|
151 |
+
});
|
152 |
+
|
153 |
+
keyNav = tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
|
154 |
+
root: tabContainerElm,
|
155 |
+
items: items,
|
156 |
+
onAction: action,
|
157 |
+
actOnFocus: true,
|
158 |
+
enableLeftRight: true,
|
159 |
+
enableUpDown: true
|
160 |
+
}, tinyMCEPopup.dom);
|
161 |
+
});
|
162 |
+
});
|
utils/validate.js
CHANGED
@@ -32,7 +32,7 @@ var Validator = {
|
|
32 |
},
|
33 |
|
34 |
isSize : function(s) {
|
35 |
-
return this.test(s, '^[0-9]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
|
36 |
},
|
37 |
|
38 |
isId : function(s) {
|
@@ -96,8 +96,10 @@ var AutoValidator = {
|
|
96 |
var i, nl, s = this.settings, c = 0;
|
97 |
|
98 |
nl = this.tags(f, 'label');
|
99 |
-
for (i=0; i<nl.length; i++)
|
100 |
this.removeClass(nl[i], s.invalid_cls);
|
|
|
|
|
101 |
|
102 |
c += this.validateElms(f, 'input');
|
103 |
c += this.validateElms(f, 'select');
|
@@ -109,6 +111,33 @@ var AutoValidator = {
|
|
109 |
invalidate : function(n) {
|
110 |
this.mark(n.form, n);
|
111 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
reset : function(e) {
|
114 |
var t = ['label', 'input', 'select', 'textarea'];
|
@@ -119,8 +148,10 @@ var AutoValidator = {
|
|
119 |
|
120 |
for (i=0; i<t.length; i++) {
|
121 |
nl = this.tags(e.form ? e.form : e, t[i]);
|
122 |
-
for (j=0; j<nl.length; j++)
|
123 |
this.removeClass(nl[j], s.invalid_cls);
|
|
|
|
|
124 |
}
|
125 |
},
|
126 |
|
@@ -201,6 +232,7 @@ var AutoValidator = {
|
|
201 |
var s = this.settings;
|
202 |
|
203 |
this.addClass(n, s.invalid_cls);
|
|
|
204 |
this.markLabels(f, n, s.invalid_cls);
|
205 |
|
206 |
return false;
|
32 |
},
|
33 |
|
34 |
isSize : function(s) {
|
35 |
+
return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
|
36 |
},
|
37 |
|
38 |
isId : function(s) {
|
96 |
var i, nl, s = this.settings, c = 0;
|
97 |
|
98 |
nl = this.tags(f, 'label');
|
99 |
+
for (i=0; i<nl.length; i++) {
|
100 |
this.removeClass(nl[i], s.invalid_cls);
|
101 |
+
nl[i].setAttribute('aria-invalid', false);
|
102 |
+
}
|
103 |
|
104 |
c += this.validateElms(f, 'input');
|
105 |
c += this.validateElms(f, 'select');
|
111 |
invalidate : function(n) {
|
112 |
this.mark(n.form, n);
|
113 |
},
|
114 |
+
|
115 |
+
getErrorMessages : function(f) {
|
116 |
+
var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor;
|
117 |
+
nl = this.tags(f, "label");
|
118 |
+
for (i=0; i<nl.length; i++) {
|
119 |
+
if (this.hasClass(nl[i], s.invalid_cls)) {
|
120 |
+
field = document.getElementById(nl[i].getAttribute("for"));
|
121 |
+
values = { field: nl[i].textContent };
|
122 |
+
if (this.hasClass(field, s.min_cls, true)) {
|
123 |
+
message = ed.getLang('invalid_data_min');
|
124 |
+
values.min = this.getNum(field, s.min_cls);
|
125 |
+
} else if (this.hasClass(field, s.number_cls)) {
|
126 |
+
message = ed.getLang('invalid_data_number');
|
127 |
+
} else if (this.hasClass(field, s.size_cls)) {
|
128 |
+
message = ed.getLang('invalid_data_size');
|
129 |
+
} else {
|
130 |
+
message = ed.getLang('invalid_data');
|
131 |
+
}
|
132 |
+
|
133 |
+
message = message.replace(/{\#([^}]+)\}/g, function(a, b) {
|
134 |
+
return values[b] || '{#' + b + '}';
|
135 |
+
});
|
136 |
+
messages.push(message);
|
137 |
+
}
|
138 |
+
}
|
139 |
+
return messages;
|
140 |
+
},
|
141 |
|
142 |
reset : function(e) {
|
143 |
var t = ['label', 'input', 'select', 'textarea'];
|
148 |
|
149 |
for (i=0; i<t.length; i++) {
|
150 |
nl = this.tags(e.form ? e.form : e, t[i]);
|
151 |
+
for (j=0; j<nl.length; j++) {
|
152 |
this.removeClass(nl[j], s.invalid_cls);
|
153 |
+
nl[j].setAttribute('aria-invalid', false);
|
154 |
+
}
|
155 |
}
|
156 |
},
|
157 |
|
232 |
var s = this.settings;
|
233 |
|
234 |
this.addClass(n, s.invalid_cls);
|
235 |
+
n.setAttribute('aria-invalid', 'true');
|
236 |
this.markLabels(f, n, s.invalid_cls);
|
237 |
|
238 |
return false;
|