annotate static/js/tiny_mce_init_std.js @ 629:f4c043cf55ac

Wiki integration. Requests don't always have sessions. In particular this occurs when a request is made without a trailing slash. The Common middleware redirects when this happens, and the middleware process_request() processing stops before a session can get added. So just set an attribute on the request object for each operation. This seemed weird to me at first, but there are plenty of examples of this in the Django code base already.
author Brian Neal <bgneal@gmail.com>
date Tue, 13 Nov 2012 13:50:06 -0600
parents 639af9e6bd78
children
rev   line source
bgneal@442 1 tinyMCE.init({
bgneal@486 2 mode : "specific_textareas",
bgneal@486 3 editor_deselector: "mceNoEditor",
bgneal@442 4 theme : "advanced",
bgneal@442 5 convert_urls: false,
bgneal@442 6 theme_advanced_toolbar_location : "top",
bgneal@442 7 theme_advanced_toolbar_align : "left",
bgneal@442 8 theme_advanced_buttons1 : "fullscreen,|,preview,|,bold,italic,underline,strikethrough,|,bullist,numlist,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,cleanup,help,|,code",
bgneal@442 9 theme_advanced_buttons2 : "pastetext,pasteword,selectall",
bgneal@442 10 theme_advanced_buttons3 : "",
bgneal@442 11 auto_cleanup_word : true,
bgneal@442 12 plugins : "table,advhr,emotions,insertdatetime,preview,searchreplace,print,contextmenu,fullscreen,media,paste",
bgneal@442 13 paste_auto_cleanup_on_paste: true,
bgneal@442 14 plugin_insertdate_dateFormat : "%m/%d/%Y",
bgneal@442 15 plugin_insertdate_timeFormat : "%H:%M:%S",
bgneal@442 16 fullscreen_settings : {
bgneal@442 17 theme_advanced_path_location : "top",
bgneal@442 18 theme_advanced_buttons1 : "fullscreen,|,preview,|,cut,copy,paste,|,undo,redo,|,search,replace,|,code,|,cleanup,|,bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,help",
bgneal@442 19 theme_advanced_buttons2 : "removeformat,styleselect,formatselect,fontselect,fontsizeselect,|,bullist,numlist,outdent,indent,|,link,unlink,anchor",
bgneal@442 20 theme_advanced_buttons3 : "sub,sup,|,image,insertdate,inserttime,|,tablecontrols,|,hr,advhr,visualaid,|,charmap,emotions,|,print",
bgneal@442 21 theme_advanced_buttons4 : "pastetext,pasteword,selectall"
bgneal@600 22 },
bgneal@615 23 valid_styles : { '*' : 'font-style,font-weight,text-decoration,float,margin,margin-right'}
bgneal@442 24 });