Mercurial > public > sg101
diff static/js/tiny_mce_init_std.js @ 442:6c182ceb7147
Fixing #217; upgrade TinyMCE to 3.4.2 and enable the paste plugin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 May 2011 00:43:49 +0000 |
parents | 6322b80c1797 |
children | 7854d75427af |
line wrap: on
line diff
--- a/static/js/tiny_mce_init_std.js Wed May 25 02:39:08 2011 +0000 +++ b/static/js/tiny_mce_init_std.js Thu May 26 00:43:49 2011 +0000 @@ -1,20 +1,22 @@ -tinyMCE.init({ - mode : "textareas", - theme : "advanced", - convert_urls: false, - theme_advanced_toolbar_location : "top", - theme_advanced_toolbar_align : "left", - theme_advanced_buttons1 : "fullscreen,|,preview,|,bold,italic,underline,strikethrough,|,bullist,numlist,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,cleanup,help,|,code", - theme_advanced_buttons2 : "", - theme_advanced_buttons3 : "", - auto_cleanup_word : true, - plugins : "table,advhr,emotions,insertdatetime,preview,searchreplace,print,contextmenu,fullscreen,media", - plugin_insertdate_dateFormat : "%m/%d/%Y", - plugin_insertdate_timeFormat : "%H:%M:%S", - fullscreen_settings : { - theme_advanced_path_location : "top", - 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", - theme_advanced_buttons2 : "removeformat,styleselect,formatselect,fontselect,fontsizeselect,|,bullist,numlist,outdent,indent,|,link,unlink,anchor", - theme_advanced_buttons3 : "sub,sup,|,image,insertdate,inserttime,|,tablecontrols,|,hr,advhr,visualaid,|,charmap,emotions,|,print" - } -}); +tinyMCE.init({ + mode : "textareas", + theme : "advanced", + convert_urls: false, + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + theme_advanced_buttons1 : "fullscreen,|,preview,|,bold,italic,underline,strikethrough,|,bullist,numlist,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,cleanup,help,|,code", + theme_advanced_buttons2 : "pastetext,pasteword,selectall", + theme_advanced_buttons3 : "", + auto_cleanup_word : true, + plugins : "table,advhr,emotions,insertdatetime,preview,searchreplace,print,contextmenu,fullscreen,media,paste", + paste_auto_cleanup_on_paste: true, + plugin_insertdate_dateFormat : "%m/%d/%Y", + plugin_insertdate_timeFormat : "%H:%M:%S", + fullscreen_settings : { + theme_advanced_path_location : "top", + 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", + theme_advanced_buttons2 : "removeformat,styleselect,formatselect,fontselect,fontsizeselect,|,bullist,numlist,outdent,indent,|,link,unlink,anchor", + theme_advanced_buttons3 : "sub,sup,|,image,insertdate,inserttime,|,tablecontrols,|,hr,advhr,visualaid,|,charmap,emotions,|,print", + theme_advanced_buttons4 : "pastetext,pasteword,selectall" + } +});