annotate static/js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm @ 45:966cde8635c0

For issue #3, created a separate news app. Created import management command. Using TinyMCE editor in the admin. News model now stores HTML. The news page is now paginated. Each story has a perma-link now.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Mar 2012 20:02:39 -0500
parents
children
rev   line source
bgneal@45 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
bgneal@45 2 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@45 3 <head>
bgneal@45 4 <title>{#advanced_dlg.image_title}</title>
bgneal@45 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
bgneal@45 6 <script type="text/javascript" src="../../utils/mctabs.js"></script>
bgneal@45 7 <script type="text/javascript" src="../../utils/form_utils.js"></script>
bgneal@45 8 <script type="text/javascript" src="js/image.js"></script>
bgneal@45 9 </head>
bgneal@45 10 <body id="image" style="display: none">
bgneal@45 11 <form onsubmit="ImageDialog.update();return false;" action="#">
bgneal@45 12 <div class="tabs">
bgneal@45 13 <ul>
bgneal@45 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@45 15 </ul>
bgneal@45 16 </div>
bgneal@45 17
bgneal@45 18 <div class="panel_wrapper">
bgneal@45 19 <div id="general_panel" class="panel current">
bgneal@45 20 <table border="0" cellpadding="4" cellspacing="0">
bgneal@45 21 <tr>
bgneal@45 22 <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
bgneal@45 23 <td><table border="0" cellspacing="0" cellpadding="0">
bgneal@45 24 <tr>
bgneal@45 25 <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
bgneal@45 26 <td id="srcbrowsercontainer">&nbsp;</td>
bgneal@45 27 </tr>
bgneal@45 28 </table></td>
bgneal@45 29 </tr>
bgneal@45 30 <tr>
bgneal@45 31 <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
bgneal@45 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@45 33 </tr>
bgneal@45 34 <tr>
bgneal@45 35 <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
bgneal@45 36 <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
bgneal@45 37 </tr>
bgneal@45 38 <tr>
bgneal@45 39 <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
bgneal@45 40 <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
bgneal@45 41 <option value="">{#not_set}</option>
bgneal@45 42 <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
bgneal@45 43 <option value="top">{#advanced_dlg.image_align_top}</option>
bgneal@45 44 <option value="middle">{#advanced_dlg.image_align_middle}</option>
bgneal@45 45 <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
bgneal@45 46 <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
bgneal@45 47 <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
bgneal@45 48 <option value="left">{#advanced_dlg.image_align_left}</option>
bgneal@45 49 <option value="right">{#advanced_dlg.image_align_right}</option>
bgneal@45 50 </select></td>
bgneal@45 51 </tr>
bgneal@45 52 <tr>
bgneal@45 53 <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
bgneal@45 54 <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
bgneal@45 55 x
bgneal@45 56 <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
bgneal@45 57 </tr>
bgneal@45 58 <tr>
bgneal@45 59 <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
bgneal@45 60 <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
bgneal@45 61 </tr>
bgneal@45 62 <tr>
bgneal@45 63 <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
bgneal@45 64 <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
bgneal@45 65 </tr>
bgneal@45 66 <tr>
bgneal@45 67 <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
bgneal@45 68 <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
bgneal@45 69 </tr>
bgneal@45 70 </table>
bgneal@45 71 </div>
bgneal@45 72 </div>
bgneal@45 73
bgneal@45 74 <div class="mceActionPanel">
bgneal@45 75 <input type="submit" id="insert" name="insert" value="{#insert}" />
bgneal@45 76 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
bgneal@45 77 </div>
bgneal@45 78 </form>
bgneal@45 79 </body>
bgneal@45 80 </html>