annotate static/js/tiny_mce/themes/advanced/image.htm @ 334:6805d15cda13

Adding a script I had to write on the fly to filter out posts from the posts csv file that had no parent topics. MyISAM let me get away with that, but InnoDB won't.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 01:28:22 +0000
parents 88b2b9cb8c1f
children 6c182ceb7147
rev   line source
bgneal@312 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
bgneal@312 2 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@312 3 <head>
bgneal@312 4 <title>{#advanced_dlg.image_title}</title>
bgneal@312 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
bgneal@312 6 <script type="text/javascript" src="../../utils/mctabs.js"></script>
bgneal@312 7 <script type="text/javascript" src="../../utils/form_utils.js"></script>
bgneal@312 8 <script type="text/javascript" src="js/image.js"></script>
bgneal@312 9 </head>
bgneal@312 10 <body id="image" style="display: none">
bgneal@312 11 <form onsubmit="ImageDialog.update();return false;" action="#">
bgneal@312 12 <div class="tabs">
bgneal@312 13 <ul>
bgneal@312 14 <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.image_title}</a></span></li>
bgneal@312 15 </ul>
bgneal@312 16 </div>
bgneal@312 17
bgneal@312 18 <div class="panel_wrapper">
bgneal@312 19 <div id="general_panel" class="panel current">
bgneal@312 20 <table border="0" cellpadding="4" cellspacing="0">
bgneal@312 21 <tr>
bgneal@312 22 <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
bgneal@312 23 <td><table border="0" cellspacing="0" cellpadding="0">
bgneal@312 24 <tr>
bgneal@312 25 <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
bgneal@312 26 <td id="srcbrowsercontainer">&nbsp;</td>
bgneal@312 27 </tr>
bgneal@312 28 </table></td>
bgneal@312 29 </tr>
bgneal@312 30 <tr>
bgneal@312 31 <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
bgneal@312 32 <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
bgneal@312 33 </tr>
bgneal@312 34 <tr>
bgneal@312 35 <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
bgneal@312 36 <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
bgneal@312 37 </tr>
bgneal@312 38 <tr>
bgneal@312 39 <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
bgneal@312 40 <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
bgneal@312 41 <option value="">{#not_set}</option>
bgneal@312 42 <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
bgneal@312 43 <option value="top">{#advanced_dlg.image_align_top}</option>
bgneal@312 44 <option value="middle">{#advanced_dlg.image_align_middle}</option>
bgneal@312 45 <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
bgneal@312 46 <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
bgneal@312 47 <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
bgneal@312 48 <option value="left">{#advanced_dlg.image_align_left}</option>
bgneal@312 49 <option value="right">{#advanced_dlg.image_align_right}</option>
bgneal@312 50 </select></td>
bgneal@312 51 </tr>
bgneal@312 52 <tr>
bgneal@312 53 <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
bgneal@312 54 <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
bgneal@312 55 x
bgneal@312 56 <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
bgneal@312 57 </tr>
bgneal@312 58 <tr>
bgneal@312 59 <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
bgneal@312 60 <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
bgneal@312 61 </tr>
bgneal@312 62 <tr>
bgneal@312 63 <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
bgneal@312 64 <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
bgneal@312 65 </tr>
bgneal@312 66 <tr>
bgneal@312 67 <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
bgneal@312 68 <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
bgneal@312 69 </tr>
bgneal@312 70 </table>
bgneal@312 71 </div>
bgneal@312 72 </div>
bgneal@312 73
bgneal@312 74 <div class="mceActionPanel">
bgneal@312 75 <input type="submit" id="insert" name="insert" value="{#insert}" />
bgneal@312 76 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
bgneal@312 77 </div>
bgneal@312 78 </form>
bgneal@312 79 </body>
bgneal@312 80 </html>