Mercurial > public > sg101
comparison static/js/tiny_mce/plugins/table/table.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 |
---|---|
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="../../utils/editable_selects.js"></script> | 9 <script type="text/javascript" src="../../utils/editable_selects.js"></script> |
10 <script type="text/javascript" src="js/table.js"></script> | 10 <script type="text/javascript" src="js/table.js"></script> |
11 <link href="css/table.css" rel="stylesheet" type="text/css" /> | 11 <link href="css/table.css" rel="stylesheet" type="text/css" /> |
12 </head> | 12 </head> |
13 <body id="table" style="display: none"> | 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> | |
14 <form onsubmit="insertTable();return false;" action="#"> | 15 <form onsubmit="insertTable();return false;" action="#"> |
15 <div class="tabs"> | 16 <div class="tabs"> |
16 <ul> | 17 <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="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> |
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 <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> |
19 </ul> | 20 </ul> |
20 </div> | 21 </div> |
21 | 22 |
22 <div class="panel_wrapper"> | 23 <div class="panel_wrapper"> |
23 <div id="general_panel" class="panel current"> | 24 <div id="general_panel" class="panel current"> |
24 <fieldset> | 25 <fieldset> |
25 <legend>{#table_dlg.general_props}</legend> | 26 <legend>{#table_dlg.general_props}</legend> |
26 <table border="0" cellpadding="4" cellspacing="0" width="100%"> | 27 <table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%"> |
27 <tr> | 28 <tr> |
28 <td><label id="colslabel" for="cols">{#table_dlg.cols}</label></td> | 29 <td><label id="colslabel" for="cols">{#table_dlg.cols}</label></td> |
29 <td><input id="cols" name="cols" type="text" value="" size="3" maxlength="3" class="required number min1 mceFocus" /></td> | 30 <td><input id="cols" name="cols" type="text" value="" size="3" maxlength="3" class="required number min1 mceFocus" aria-required="true" /></td> |
30 <td><label id="rowslabel" for="rows">{#table_dlg.rows}</label></td> | 31 <td><label id="rowslabel" for="rows">{#table_dlg.rows}</label></td> |
31 <td><input id="rows" name="rows" type="text" value="" size="3" maxlength="3" class="required number min1" /></td> | 32 <td><input id="rows" name="rows" type="text" value="" size="3" maxlength="3" class="required number min1" aria-required="true" /></td> |
32 </tr> | 33 </tr> |
33 <tr> | 34 <tr> |
34 <td><label id="cellpaddinglabel" for="cellpadding">{#table_dlg.cellpadding}</label></td> | 35 <td><label id="cellpaddinglabel" for="cellpadding">{#table_dlg.cellpadding}</label></td> |
35 <td><input id="cellpadding" name="cellpadding" type="text" value="" size="3" maxlength="3" class="number" /></td> | 36 <td><input id="cellpadding" name="cellpadding" type="text" value="" size="3" maxlength="3" class="number" /></td> |
36 <td><label id="cellspacinglabel" for="cellspacing">{#table_dlg.cellspacing}</label></td> | 37 <td><label id="cellspacinglabel" for="cellspacing">{#table_dlg.cellspacing}</label></td> |
37 <td><input id="cellspacing" name="cellspacing" type="text" value="" size="3" maxlength="3" class="number" /></td> | 38 <td><input id="cellspacing" name="cellspacing" type="text" value="" size="3" maxlength="3" class="number" /></td> |
38 </tr> | 39 </tr> |
39 <tr> | 40 <tr> |
40 <td><label id="alignlabel" for="align">{#table_dlg.align}</label></td> | 41 <td><label id="alignlabel" for="align">{#table_dlg.align}</label></td> |
41 <td><select id="align" name="align"> | 42 <td><select id="align" name="align"> |
42 <option value="">{#not_set}</option> | 43 <option value="">{#not_set}</option> |
43 <option value="center">{#table_dlg.align_middle}</option> | 44 <option value="center">{#table_dlg.align_middle}</option> |
44 <option value="left">{#table_dlg.align_left}</option> | 45 <option value="left">{#table_dlg.align_left}</option> |
45 <option value="right">{#table_dlg.align_right}</option> | 46 <option value="right">{#table_dlg.align_right}</option> |
46 </select></td> | 47 </select></td> |
47 <td><label id="borderlabel" for="border">{#table_dlg.border}</label></td> | 48 <td><label id="borderlabel" for="border">{#table_dlg.border}</label></td> |
48 <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="changedBorder();" class="number" /></td> | 49 <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="changedBorder();" class="number" /></td> |
49 </tr> | 50 </tr> |
50 <tr id="width_row"> | 51 <tr id="width_row"> |
51 <td><label id="widthlabel" for="width">{#table_dlg.width}</label></td> | 52 <td><label id="widthlabel" for="width">{#table_dlg.width}</label></td> |
52 <td><input name="width" type="text" id="width" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td> | 53 <td><input name="width" type="text" id="width" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td> |
53 <td><label id="heightlabel" for="height">{#table_dlg.height}</label></td> | 54 <td><label id="heightlabel" for="height">{#table_dlg.height}</label></td> |
54 <td><input name="height" type="text" id="height" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td> | 55 <td><input name="height" type="text" id="height" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td> |
55 </tr> | 56 </tr> |
56 <tr id="styleSelectRow"> | 57 <tr id="styleSelectRow" > |
57 <td><label id="classlabel" for="class">{#class_name}</label></td> | 58 <td><label id="classlabel" for="class">{#class_name}</label></td> |
58 <td colspan="3"> | 59 <td colspan="3" > |
59 <select id="class" name="class" class="mceEditableSelect"> | 60 <select id="class" name="class" class="mceEditableSelect"> |
60 <option value="" selected="selected">{#not_set}</option> | 61 <option value="" selected="selected">{#not_set}</option> |
61 </select></td> | 62 </select></td> |
62 </tr> | 63 </tr> |
63 <tr> | 64 <tr> |
64 <td class="column1"><label for="caption">{#table_dlg.caption}</label></td> | 65 <td class="column1" ><label for="caption">{#table_dlg.caption}</label></td> |
65 <td><input id="caption" name="caption" type="checkbox" class="checkbox" value="true" /></td> | 66 <td><input id="caption" name="caption" type="checkbox" class="checkbox" value="true" /></td> |
66 </tr> | 67 </tr> |
67 </table> | 68 </table> |
68 </fieldset> | 69 </fieldset> |
69 </div> | 70 </div> |
70 | 71 |
71 <div id="advanced_panel" class="panel"> | 72 <div id="advanced_panel" class="panel"> |
72 <fieldset> | 73 <fieldset> |
73 <legend>{#table_dlg.advanced_props}</legend> | 74 <legend>{#table_dlg.advanced_props}</legend> |
74 | 75 |
75 <table border="0" cellpadding="0" cellspacing="4"> | 76 <table role="presentation" border="0" cellpadding="0" cellspacing="4"> |
76 <tr> | 77 <tr> |
77 <td class="column1"><label for="id">{#table_dlg.id}</label></td> | 78 <td class="column1"><label for="id">{#table_dlg.id}</label></td> |
78 <td><input id="id" name="id" type="text" value="" class="advfield" /></td> | 79 <td><input id="id" name="id" type="text" value="" class="advfield" /></td> |
79 </tr> | 80 </tr> |
80 | 81 |
96 </tr> | 97 </tr> |
97 | 98 |
98 <tr> | 99 <tr> |
99 <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td> | 100 <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td> |
100 <td> | 101 <td> |
101 <table border="0" cellpadding="0" cellspacing="0"> | 102 <table role="presentation" aria-labelledby="backgroundimage_label" border="0" cellpadding="0" cellspacing="0"> |
102 <tr> | 103 <tr> |
103 <td><input id="backgroundimage" name="backgroundimage" type="text" value="" class="advfield" onchange="changedBackgroundImage();" /></td> | 104 <td><input id="backgroundimage" name="backgroundimage" type="text" value="" class="advfield" onchange="changedBackgroundImage();" /></td> |
104 <td id="backgroundimagebrowsercontainer"> </td> | 105 <td id="backgroundimagebrowsercontainer"> </td> |
105 </tr> | 106 </tr> |
106 </table> | 107 </table> |
148 <option value="rtl">{#table_dlg.rtl}</option> | 149 <option value="rtl">{#table_dlg.rtl}</option> |
149 </select> | 150 </select> |
150 </td> | 151 </td> |
151 </tr> | 152 </tr> |
152 | 153 |
153 <tr> | 154 <tr role="group" aria-labelledby="bordercolor_label"> |
154 <td class="column1"><label for="bordercolor">{#table_dlg.bordercolor}</label></td> | 155 <td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td> |
155 <td> | 156 <td> |
156 <table border="0" cellpadding="0" cellspacing="0"> | 157 <table role="presentation" border="0" cellpadding="0" cellspacing="0"> |
157 <tr> | 158 <tr> |
158 <td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td> | 159 <td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td> |
159 <td id="bordercolor_pickcontainer"> </td> | 160 <td id="bordercolor_pickcontainer"> </td> |
160 </tr> | 161 </tr> |
161 </table> | 162 </table> |
162 </td> | 163 </td> |
163 </tr> | 164 </tr> |
164 | 165 |
165 <tr> | 166 <tr role="group" aria-labelledby="bgcolor_label"> |
166 <td class="column1"><label for="bgcolor">{#table_dlg.bgcolor}</label></td> | 167 <td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td> |
167 <td> | 168 <td> |
168 <table border="0" cellpadding="0" cellspacing="0"> | 169 <table role="presentation" border="0" cellpadding="0" cellspacing="0"> |
169 <tr> | 170 <tr> |
170 <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td> | 171 <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td> |
171 <td id="bgcolor_pickcontainer"> </td> | 172 <td id="bgcolor_pickcontainer"> </td> |
172 </tr> | 173 </tr> |
173 </table> | 174 </table> |