annotate media/js/tiny_mce/plugins/paste/pastetext.htm @ 265:1ba2c6bf6eb7

Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author Brian Neal <bgneal@gmail.com>
date Fri, 24 Sep 2010 02:12:09 +0000
parents 149c3567fec1
children
rev   line source
bgneal@45 1 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@45 2 <head>
bgneal@45 3 <title>{#paste.paste_text_desc}</title>
bgneal@45 4 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
bgneal@45 5 <script type="text/javascript" src="js/pastetext.js"></script>
bgneal@45 6 </head>
bgneal@183 7 <body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
bgneal@183 8 <form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
bgneal@183 9 <div style="float: left" class="title">{#paste.paste_text_desc}</div>
bgneal@45 10
bgneal@183 11 <div style="float: right">
bgneal@183 12 <input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>
bgneal@45 13 </div>
bgneal@45 14
bgneal@183 15 <br style="clear: both" />
bgneal@183 16
bgneal@183 17 <div>{#paste_dlg.text_title}</div>
bgneal@183 18
bgneal@183 19 <textarea id="content" name="content" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea>
bgneal@183 20
bgneal@183 21 <div class="mceActionPanel">
bgneal@183 22 <input type="submit" name="insert" value="{#insert}" id="insert" />
bgneal@45 23 <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
bgneal@45 24 </div>
bgneal@183 25 </form>
bgneal@45 26 </body>
bgneal@45 27 </html>