diff options
| author | hukl <contact@smyck.org> | 2009-10-19 11:10:04 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-19 11:10:04 +0200 |
| commit | b17fc81bbbbbedb346795935d12c6e163257fa55 (patch) | |
| tree | 5b36f4231ad8bb752825a9b0420b8cc074967f49 | |
| parent | e941a84d6f371938e2e344d0d5ab49b7d54ad8f0 (diff) | |
page editor is initialized first
| -rw-r--r-- | public/javascripts/admin_interface.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 66e9a96..3fcc036 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -1,6 +1,22 @@ | |||
| 1 | $(document).ready(function () { | 1 | $(document).ready(function () { |
| 2 | admin_search.initialize(); | 2 | admin_search.initialize(); |
| 3 | 3 | ||
| 4 | $(".with_editor").tinymce({ | ||
| 5 | script_url : '/javascripts/tiny_mce/tiny_mce.js', | ||
| 6 | theme: "advanced", | ||
| 7 | mode : "specific_textareas", | ||
| 8 | editor_selector : "with_editor", | ||
| 9 | theme_advanced_toolbar_location : "top", | ||
| 10 | theme_advanced_toolbar_align : "left", | ||
| 11 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", | ||
| 12 | theme_advanced_buttons2 : "", | ||
| 13 | theme_advanced_buttons3 : "", | ||
| 14 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial]", | ||
| 15 | relative_urls : false, | ||
| 16 | entity_encoding : "raw", | ||
| 17 | oninit : cccms.setup_autosave() | ||
| 18 | }); | ||
| 19 | |||
| 4 | if ($("#menu_search_term").length != 0) { | 20 | if ($("#menu_search_term").length != 0) { |
| 5 | menu_items.initialize_search(); | 21 | menu_items.initialize_search(); |
| 6 | } | 22 | } |
| @@ -42,22 +58,6 @@ $(document).ready(function () { | |||
| 42 | }); | 58 | }); |
| 43 | } | 59 | } |
| 44 | 60 | ||
| 45 | $(".with_editor").tinymce({ | ||
| 46 | script_url : '/javascripts/tiny_mce/tiny_mce.js', | ||
| 47 | theme: "advanced", | ||
| 48 | mode : "specific_textareas", | ||
| 49 | editor_selector : "with_editor", | ||
| 50 | theme_advanced_toolbar_location : "top", | ||
| 51 | theme_advanced_toolbar_align : "left", | ||
| 52 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", | ||
| 53 | theme_advanced_buttons2 : "", | ||
| 54 | theme_advanced_buttons3 : "", | ||
| 55 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial]", | ||
| 56 | relative_urls : false, | ||
| 57 | entity_encoding : "raw", | ||
| 58 | oninit : cccms.setup_autosave() | ||
| 59 | }); | ||
| 60 | |||
| 61 | jQuery.ajaxSetup({ | 61 | jQuery.ajaxSetup({ |
| 62 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");} | 62 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");} |
| 63 | }); | 63 | }); |
