summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-17 21:54:39 +0100
committerhukl <contact@smyck.org>2009-02-17 21:54:39 +0100
commitf61b5b0597e0c25f084ee67d402f12a43a7a9947 (patch)
tree3b4c3f9f38637f1a7ecf703ece4fd3bc4c6e2934 /app
parent3d3b786cc43266f6292f5edd25733dbb9bd6ed06 (diff)
added tinymce editor for body area of pages
Diffstat (limited to 'app')
-rw-r--r--app/views/layouts/admin.html.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index 8b69759..df5b014 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -7,6 +7,20 @@
7 7
8 <title>untitled</title> 8 <title>untitled</title>
9 <%= stylesheet_link_tag 'admin' %> 9 <%= stylesheet_link_tag 'admin' %>
10 <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %>
11
12 <script type="text/javascript">
13 tinyMCE.init({
14 theme: "advanced",
15 mode : "specific_textareas",
16 editor_selector : "with_editor",
17 theme_advanced_toolbar_location : "top",
18 theme_advanced_toolbar_align : "left",
19 theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink",
20 theme_advanced_buttons2 : "",
21 theme_advanced_buttons3 : ""
22 });
23 </script>
10 </head> 24 </head>
11 25
12 <body> 26 <body>