annotate static/js/tiny_mce_init_std.js @ 318:c550933ff5b6

Fix a bug where you'd get an error when trying to delete a forum thread (topic does not exist). Apparently when you call topic.delete() the posts would get deleted, but the signal handler for each one would run, and it would try to update the topic's post count or something, but the topic was gone? Reworked the code a bit and explicitly delete the posts first. I also added a sync() call on the parent forum since post counts were not getting adjusted.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 Feb 2011 21:46:52 +0000
parents 88b2b9cb8c1f
children 6322b80c1797
rev   line source
bgneal@312 1 tinyMCE.init({
bgneal@312 2 mode : "textareas",
bgneal@312 3 theme : "advanced",
bgneal@312 4 content_css : "css/example.css",
bgneal@312 5 theme_advanced_toolbar_location : "top",
bgneal@312 6 theme_advanced_toolbar_align : "left",
bgneal@312 7 theme_advanced_buttons1 : "fullscreen,|,preview,|,bold,italic,underline,strikethrough,|,bullist,numlist,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,cleanup,help,|,code",
bgneal@312 8 theme_advanced_buttons2 : "",
bgneal@312 9 theme_advanced_buttons3 : "",
bgneal@312 10 auto_cleanup_word : true,
bgneal@312 11 plugins : "table,advhr,emotions,insertdatetime,preview,searchreplace,print,contextmenu,fullscreen,media",
bgneal@312 12 plugin_insertdate_dateFormat : "%m/%d/%Y",
bgneal@312 13 plugin_insertdate_timeFormat : "%H:%M:%S",
bgneal@312 14 fullscreen_settings : {
bgneal@312 15 theme_advanced_path_location : "top",
bgneal@312 16 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@312 17 theme_advanced_buttons2 : "removeformat,styleselect,formatselect,fontselect,fontsizeselect,|,bullist,numlist,outdent,indent,|,link,unlink,anchor",
bgneal@312 18 theme_advanced_buttons3 : "sub,sup,|,image,insertdate,inserttime,|,tablecontrols,|,hr,advhr,visualaid,|,charmap,emotions,|,print"
bgneal@312 19 }
bgneal@312 20 });