diff options
Diffstat (limited to 'public/javascripts/admin_interface.js')
| -rw-r--r-- | public/javascripts/admin_interface.js | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index aacb6f8..ca44891 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -13,27 +13,21 @@ function hide_all() { | |||
| 13 | $(document).ready(function () { | 13 | $(document).ready(function () { |
| 14 | admin_search.initialize(); | 14 | admin_search.initialize(); |
| 15 | 15 | ||
| 16 | $(".with_editor").tinymce({ | 16 | tinymce.init({ |
| 17 | script_url : '/javascripts/tiny_mce/tiny_mce.js', | 17 | selector: 'textarea.with_editor', |
| 18 | theme: "advanced", | 18 | license_key: 'gpl', |
| 19 | mode : "specific_textareas", | 19 | plugins: 'paste', |
| 20 | editor_selector : "with_editor", | 20 | toolbar: 'bold italic underline | bullist numlist | link unlink | blocks | code', |
| 21 | plugins : "safari, paste", | 21 | extended_valid_elements: 'aggregate[tags|limit|order_by|order_direction|partial|conditions]', |
| 22 | paste_auto_cleanup_on_paste : true, | 22 | relative_urls: false, |
| 23 | paste_strip_class_attributes : true, | 23 | entity_encoding: 'raw', |
| 24 | paste_remove_spans : true, | 24 | setup: function(editor) { |
| 25 | paste_remove_styles : true, | 25 | editor.on('init', function() { |
| 26 | theme_advanced_toolbar_location : "top", | 26 | cccms.setup_autosave(); |
| 27 | theme_advanced_toolbar_align : "left", | 27 | }); |
| 28 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", | 28 | } |
| 29 | theme_advanced_buttons2 : "", | 29 | }); |
| 30 | theme_advanced_buttons3 : "", | 30 | |
| 31 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial|conditions]", | ||
| 32 | relative_urls : false, | ||
| 33 | entity_encoding : "raw", | ||
| 34 | oninit : cccms.setup_autosave() | ||
| 35 | }); | ||
| 36 | |||
| 37 | if ($("#menu_search_term").length != 0) { | 31 | if ($("#menu_search_term").length != 0) { |
| 38 | menu_items.initialize_search(); | 32 | menu_items.initialize_search(); |
| 39 | } | 33 | } |
