Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/static/js/tiny_mce/plugins/advlink/link.htm Wed May 25 02:39:08 2011 +0000 +++ b/static/js/tiny_mce/plugins/advlink/link.htm Thu May 26 00:43:49 2011 +0000 @@ -9,37 +9,38 @@ <script type="text/javascript" src="js/advlink.js"></script> <link href="css/advlink.css" rel="stylesheet" type="text/css" /> </head> -<body id="advlink" style="display: none"> - <form onsubmit="insertAction();return false;" action="#"> - <div class="tabs"> +<body id="advlink" style="display: none" role="application" onload="javascript:mcTabs.displayTab('general_tab','general_panel', true);" aria-labelledby="app_label"> + <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advlink_dlg.title}</span> + <form onsubmit="insertAction();return false;" action="#"> + <div class="tabs" role="presentation"> <ul> - <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> - <li id="popup_tab"><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li> - <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li> - <li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li> + <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> + <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> + <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> + <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> </ul> </div> - <div class="panel_wrapper"> + <div class="panel_wrapper" role="presentation"> <div id="general_panel" class="panel current"> <fieldset> <legend>{#advlink_dlg.general_props}</legend> - <table border="0" cellpadding="4" cellspacing="0"> + <table border="0" cellpadding="4" cellspacing="0" role="presentation"> <tr> - <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td> - <td><table border="0" cellspacing="0" cellpadding="0"> - <tr> - <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td> - <td id="hrefbrowsercontainer"> </td> - </tr> - </table></td> + <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td> + <td><table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" aria-required="true" /></td> + <td id="hrefbrowsercontainer"> </td> + </tr> + </table></td> </tr> <tr id="linklisthrefrow"> <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td> <td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td> </tr> - <tr> + <tr id="anchorlistrow"> <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td> <td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td> </tr> @@ -70,7 +71,7 @@ <input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" /> <label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label> - <table border="0" cellpadding="0" cellspacing="4"> + <table border="0" cellpadding="0" cellspacing="4" role="presentation" > <tr> <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td> <td> @@ -86,18 +87,22 @@ <td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label> </td> <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td> </tr> - <tr> - <td class="nowrap"><label>{#advlink_dlg.popup_size}</label> </td> + <tr role="group" aria-labelledby="popup_size_label"> + <td class="nowrap"><label id="popup_size_label">{#advlink_dlg.popup_size}</label> </td> <td class="nowrap"> - <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x - <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px + <span style="display:none" id="width_voiceLabel">{#advlink_dlg.width}</span> + <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" aria-labelledby="width_voiceLabel" /> x + <span style="display:none" id="height_voiceLabel">{#advlink_dlg.height}</span> + <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" aria-labelledby="height_voiceLabel" /> px </td> </tr> - <tr> - <td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label> </td> + <tr role="group" aria-labelledby="popup_position_label center_hint"> + <td class="nowrap" id="labelleft"><label id="popup_position_label">{#advlink_dlg.popup_position}</label> </td> <td class="nowrap"> - <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> / - <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center) + <span style="display:none" id="x_voiceLabel">X</span> + <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" aria-labelledby="x_voiceLabel" /> / + <span style="display:none" id="y_voiceLabel">Y</span> + <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" aria-labelledby="y_voiceLabel" /> <span id="center_hint">(c /c = center)</span> </td> </tr> </table> @@ -105,7 +110,7 @@ <fieldset> <legend>{#advlink_dlg.popup_opts}</legend> - <table border="0" cellpadding="0" cellspacing="4"> + <table border="0" cellpadding="0" cellspacing="4" role="presentation" > <tr> <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td> <td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td> @@ -139,7 +144,7 @@ <fieldset> <legend>{#advlink_dlg.advanced_props}</legend> - <table border="0" cellpadding="0" cellspacing="4"> + <table border="0" cellpadding="0" cellspacing="4" role="presentation" > <tr> <td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td> <td><input id="id" name="id" type="text" value="" /></td> @@ -259,7 +264,7 @@ <fieldset> <legend>{#advlink_dlg.event_props}</legend> - <table border="0" cellpadding="0" cellspacing="4"> + <table border="0" cellpadding="0" cellspacing="4" role="presentation" > <tr> <td class="column1"><label for="onfocus">onfocus</label></td> <td><input id="onfocus" name="onfocus" type="text" value="" /></td> @@ -328,6 +333,6 @@ <input type="submit" id="insert" name="insert" value="{#insert}" /> <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> </div> - </form> + </form> </body> </html>