diff options
| author | hukl <contact@smyck.org> | 2009-09-09 11:42:39 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-09 11:42:39 +0200 |
| commit | 5ebbd60769ccfc97aace2bdb4251ffb09105ec19 (patch) | |
| tree | 8ae1d7ac598b77d0e64a962f30cbc13181271795 /app/views | |
| parent | b48ee28e586fd75e84e33fabfcba70c05d32a606 (diff) | |
moved tiny mce at the bottom of the layout to hopefully fix the js render bugs
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/layouts/admin.html.erb | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 43a3364..71d4566 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -9,29 +9,10 @@ | |||
| 9 | <%= javascript_include_tag 'jquery-1.3.2.min' %> | 9 | <%= javascript_include_tag 'jquery-1.3.2.min' %> |
| 10 | <%= javascript_include_tag 'jquery-ui-1.7.2.custom.min' %> | 10 | <%= javascript_include_tag 'jquery-ui-1.7.2.custom.min' %> |
| 11 | <%= javascript_include_tag 'jquery.hotkeys' %> | 11 | <%= javascript_include_tag 'jquery.hotkeys' %> |
| 12 | <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %> | ||
| 13 | <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %> | 12 | <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %> |
| 14 | <%= stylesheet_link_tag 'admin' %> | 13 | <%= stylesheet_link_tag 'admin' %> |
| 15 | <%= javascript_include_tag 'admin_search.js' %> | 14 | <%= javascript_include_tag 'admin_search.js' %> |
| 16 | <%= javascript_include_tag 'admin_interface.js' %> | 15 | <%= javascript_include_tag 'admin_interface.js' %> |
| 17 | |||
| 18 | <script type="text/javascript"> | ||
| 19 | tinyMCE.init({ | ||
| 20 | theme: "advanced", | ||
| 21 | mode : "specific_textareas", | ||
| 22 | editor_selector : "with_editor", | ||
| 23 | theme_advanced_toolbar_location : "top", | ||
| 24 | theme_advanced_toolbar_align : "left", | ||
| 25 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", | ||
| 26 | theme_advanced_buttons2 : "", | ||
| 27 | theme_advanced_buttons3 : "", | ||
| 28 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial]", | ||
| 29 | relative_urls : false, | ||
| 30 | entity_encoding : "raw", | ||
| 31 | oninit : "cccms.setup_autosave" | ||
| 32 | }); | ||
| 33 | |||
| 34 | </script> | ||
| 35 | </head> | 16 | </head> |
| 36 | 17 | ||
| 37 | <body> | 18 | <body> |
| @@ -68,5 +49,23 @@ | |||
| 68 | 49 | ||
| 69 | </div> | 50 | </div> |
| 70 | </div> | 51 | </div> |
| 52 | <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %> | ||
| 53 | <script type="text/javascript"> | ||
| 54 | tinyMCE.init({ | ||
| 55 | theme: "advanced", | ||
| 56 | mode : "specific_textareas", | ||
| 57 | editor_selector : "with_editor", | ||
| 58 | theme_advanced_toolbar_location : "top", | ||
| 59 | theme_advanced_toolbar_align : "left", | ||
| 60 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", | ||
| 61 | theme_advanced_buttons2 : "", | ||
| 62 | theme_advanced_buttons3 : "", | ||
| 63 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial]", | ||
| 64 | relative_urls : false, | ||
| 65 | entity_encoding : "raw", | ||
| 66 | oninit : "cccms.setup_autosave" | ||
| 67 | }); | ||
| 68 | |||
| 69 | </script> | ||
| 71 | </body> | 70 | </body> |
| 72 | </html> | 71 | </html> |
