From 8eefbb2158c43b51a8c33e6c480cbe61539b9535 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Mon, 27 Aug 2012 04:16:04 -0400 Subject: [PATCH] Add option to enable HTML editor on forwarding (#1488517) --- program/js/tiny_mce/plugins/xhtmlxtras/attributes.htm | 25 ++++++++++--------------- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/program/js/tiny_mce/plugins/xhtmlxtras/attributes.htm b/program/js/tiny_mce/plugins/xhtmlxtras/attributes.htm index cfbb409..e8d606a 100644 --- a/program/js/tiny_mce/plugins/xhtmlxtras/attributes.htm +++ b/program/js/tiny_mce/plugins/xhtmlxtras/attributes.htm @@ -8,14 +8,14 @@ <script type="text/javascript" src="../../utils/form_utils.js"></script> <script type="text/javascript" src="js/attributes.js"></script> <link rel="stylesheet" type="text/css" href="css/attributes.css" /> - <base target="_self" /> </head> -<body style="display: none"> +<body style="display: none" role="application" aria-labelledby="app_title"> +<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.attribs_title}</span> <form onsubmit="insertAction();return false;" action="#"> <div class="tabs"> <ul> - <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> - <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> + <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> + <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> </ul> </div> @@ -23,7 +23,7 @@ <div id="general_panel" class="panel current"> <fieldset> <legend>{#xhtmlxtras_dlg.attribute_attrib_tab}</legend> - <table border="0" cellpadding="0" cellspacing="4"> + <table role="presentation" border="0" cellpadding="0" cellspacing="4"> <tr> <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> <td><input id="title" name="title" type="text" value="" class="mceFocus" /></td> @@ -36,12 +36,12 @@ <td><label id="classlabel" for="classlist">{#class_name}</label></td> <td> <select id="classlist" name="classlist" class="mceEditableSelect"> - <option value="" selected>{#not_set}</option> + <option value="" selected="selected">{#not_set}</option> </select> </td> </tr> <tr> - <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> + <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> <td><input id="style" name="style" type="text" value="" /></td> </tr> <tr> @@ -76,7 +76,7 @@ <fieldset> <legend>{#xhtmlxtras_dlg.attribute_events_tab}</legend> - <table border="0" cellpadding="0" cellspacing="4"> + <table role="presentation" border="0" cellpadding="0" cellspacing="4"> <tr> <td class="label"><label for="onfocus">onfocus</label>:</td> <td><input id="onfocus" name="onfocus" type="text" value="" /></td> @@ -141,14 +141,9 @@ </div> </div> <div class="mceActionPanel"> - <div style="float: left"> - <input type="submit" id="insert" name="insert" value="{#insert}" /> - </div> - <div style="float: right"> - <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> - </div> + <input type="submit" id="insert" name="insert" value="{#insert}" /> + <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> </div> - </form> </body> </html> -- Gitblit v1.9.1