Mercurial > public > sg101
comparison static/js/tiny_mce/plugins/advlink/link.htm @ 442:6c182ceb7147
Fixing #217; upgrade TinyMCE to 3.4.2 and enable the paste plugin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 May 2011 00:43:49 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
441:33d0c55e57a9 | 442:6c182ceb7147 |
---|---|
7 <script type="text/javascript" src="../../utils/form_utils.js"></script> | 7 <script type="text/javascript" src="../../utils/form_utils.js"></script> |
8 <script type="text/javascript" src="../../utils/validate.js"></script> | 8 <script type="text/javascript" src="../../utils/validate.js"></script> |
9 <script type="text/javascript" src="js/advlink.js"></script> | 9 <script type="text/javascript" src="js/advlink.js"></script> |
10 <link href="css/advlink.css" rel="stylesheet" type="text/css" /> | 10 <link href="css/advlink.css" rel="stylesheet" type="text/css" /> |
11 </head> | 11 </head> |
12 <body id="advlink" style="display: none"> | 12 <body id="advlink" style="display: none" role="application" onload="javascript:mcTabs.displayTab('general_tab','general_panel', true);" aria-labelledby="app_label"> |
13 <form onsubmit="insertAction();return false;" action="#"> | 13 <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advlink_dlg.title}</span> |
14 <div class="tabs"> | 14 <form onsubmit="insertAction();return false;" action="#"> |
15 <div class="tabs" role="presentation"> | |
15 <ul> | 16 <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="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> |
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="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> |
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="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> |
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 <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> |
20 </ul> | 21 </ul> |
21 </div> | 22 </div> |
22 | 23 |
23 <div class="panel_wrapper"> | 24 <div class="panel_wrapper" role="presentation"> |
24 <div id="general_panel" class="panel current"> | 25 <div id="general_panel" class="panel current"> |
25 <fieldset> | 26 <fieldset> |
26 <legend>{#advlink_dlg.general_props}</legend> | 27 <legend>{#advlink_dlg.general_props}</legend> |
27 | 28 |
28 <table border="0" cellpadding="4" cellspacing="0"> | 29 <table border="0" cellpadding="4" cellspacing="0" role="presentation"> |
29 <tr> | 30 <tr> |
30 <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td> | 31 <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td> |
31 <td><table border="0" cellspacing="0" cellpadding="0"> | 32 <td><table border="0" cellspacing="0" cellpadding="0"> |
32 <tr> | 33 <tr> |
33 <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td> | 34 <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" aria-required="true" /></td> |
34 <td id="hrefbrowsercontainer"> </td> | 35 <td id="hrefbrowsercontainer"> </td> |
35 </tr> | 36 </tr> |
36 </table></td> | 37 </table></td> |
37 </tr> | 38 </tr> |
38 <tr id="linklisthrefrow"> | 39 <tr id="linklisthrefrow"> |
39 <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td> | 40 <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 <td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td> |
41 </tr> | 42 </tr> |
42 <tr> | 43 <tr id="anchorlistrow"> |
43 <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td> | 44 <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 <td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td> |
45 </tr> | 46 </tr> |
46 <tr> | 47 <tr> |
47 <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td> | 48 <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td> |
68 <legend>{#advlink_dlg.popup_props}</legend> | 69 <legend>{#advlink_dlg.popup_props}</legend> |
69 | 70 |
70 <input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" /> | 71 <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 <label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label> |
72 | 73 |
73 <table border="0" cellpadding="0" cellspacing="4"> | 74 <table border="0" cellpadding="0" cellspacing="4" role="presentation" > |
74 <tr> | 75 <tr> |
75 <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td> | 76 <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td> |
76 <td> | 77 <td> |
77 <table border="0" cellspacing="0" cellpadding="0"> | 78 <table border="0" cellspacing="0" cellpadding="0"> |
78 <tr> | 79 <tr> |
84 </tr> | 85 </tr> |
85 <tr> | 86 <tr> |
86 <td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label> </td> | 87 <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 <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td> |
88 </tr> | 89 </tr> |
89 <tr> | 90 <tr role="group" aria-labelledby="popup_size_label"> |
90 <td class="nowrap"><label>{#advlink_dlg.popup_size}</label> </td> | 91 <td class="nowrap"><label id="popup_size_label">{#advlink_dlg.popup_size}</label> </td> |
91 <td class="nowrap"> | 92 <td class="nowrap"> |
92 <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x | 93 <span style="display:none" id="width_voiceLabel">{#advlink_dlg.width}</span> |
93 <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px | 94 <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" aria-labelledby="width_voiceLabel" /> x |
94 </td> | 95 <span style="display:none" id="height_voiceLabel">{#advlink_dlg.height}</span> |
95 </tr> | 96 <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" aria-labelledby="height_voiceLabel" /> px |
96 <tr> | 97 </td> |
97 <td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label> </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> | |
98 <td class="nowrap"> | 101 <td class="nowrap"> |
99 <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> / | 102 <span style="display:none" id="x_voiceLabel">X</span> |
100 <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center) | 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> | |
101 </td> | 106 </td> |
102 </tr> | 107 </tr> |
103 </table> | 108 </table> |
104 | 109 |
105 <fieldset> | 110 <fieldset> |
106 <legend>{#advlink_dlg.popup_opts}</legend> | 111 <legend>{#advlink_dlg.popup_opts}</legend> |
107 | 112 |
108 <table border="0" cellpadding="0" cellspacing="4"> | 113 <table border="0" cellpadding="0" cellspacing="4" role="presentation" > |
109 <tr> | 114 <tr> |
110 <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td> | 115 <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> | 116 <td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td> |
112 <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td> | 117 <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td> |
113 <td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td> | 118 <td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td> |
137 | 142 |
138 <div id="advanced_panel" class="panel"> | 143 <div id="advanced_panel" class="panel"> |
139 <fieldset> | 144 <fieldset> |
140 <legend>{#advlink_dlg.advanced_props}</legend> | 145 <legend>{#advlink_dlg.advanced_props}</legend> |
141 | 146 |
142 <table border="0" cellpadding="0" cellspacing="4"> | 147 <table border="0" cellpadding="0" cellspacing="4" role="presentation" > |
143 <tr> | 148 <tr> |
144 <td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td> | 149 <td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td> |
145 <td><input id="id" name="id" type="text" value="" /></td> | 150 <td><input id="id" name="id" type="text" value="" /></td> |
146 </tr> | 151 </tr> |
147 | 152 |
257 | 262 |
258 <div id="events_panel" class="panel"> | 263 <div id="events_panel" class="panel"> |
259 <fieldset> | 264 <fieldset> |
260 <legend>{#advlink_dlg.event_props}</legend> | 265 <legend>{#advlink_dlg.event_props}</legend> |
261 | 266 |
262 <table border="0" cellpadding="0" cellspacing="4"> | 267 <table border="0" cellpadding="0" cellspacing="4" role="presentation" > |
263 <tr> | 268 <tr> |
264 <td class="column1"><label for="onfocus">onfocus</label></td> | 269 <td class="column1"><label for="onfocus">onfocus</label></td> |
265 <td><input id="onfocus" name="onfocus" type="text" value="" /></td> | 270 <td><input id="onfocus" name="onfocus" type="text" value="" /></td> |
266 </tr> | 271 </tr> |
267 | 272 |
326 | 331 |
327 <div class="mceActionPanel"> | 332 <div class="mceActionPanel"> |
328 <input type="submit" id="insert" name="insert" value="{#insert}" /> | 333 <input type="submit" id="insert" name="insert" value="{#insert}" /> |
329 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | 334 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> |
330 </div> | 335 </div> |
331 </form> | 336 </form> |
332 </body> | 337 </body> |
333 </html> | 338 </html> |