summaryrefslogtreecommitdiff
path: root/plugins/TinyMCE
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-08-11 12:10:08 -0700
committerBrion Vibber <brion@pobox.com>2010-08-11 12:10:08 -0700
commite3bc7ed4bfa8daac84177da0efda796c15294e95 (patch)
treef43d659600a451660ba17e2bd309f7e63a6d0b14 /plugins/TinyMCE
parent34baeb4d777b9d5289b0775b734aea7d9c626808 (diff)
TinyMCE: Switch default 'simple' layout for customized advanced layout: bold/italic/strikethrough undo/redo link/unlink/image
Diffstat (limited to 'plugins/TinyMCE')
-rw-r--r--plugins/TinyMCE/TinyMCEPlugin.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php
index 8dc1d8a58..64d071435 100644
--- a/plugins/TinyMCE/TinyMCEPlugin.php
+++ b/plugins/TinyMCE/TinyMCEPlugin.php
@@ -63,7 +63,7 @@ class TinyMCEPlugin extends Plugin
function onEndShowStyles($action)
{
- $action->style('span#notice_data-text_container { float: left }');
+ $action->style('span#notice_data-text_container, span#notice_data-text_parent { float: left }');
return true;
}
@@ -136,7 +136,10 @@ class TinyMCEPlugin extends Plugin
$('textarea#notice_data-text').tinymce({
script_url : '{$path}',
// General options
- theme : "simple",
+ theme : "advanced",
+ theme_advanced_buttons1 : "bold,italic,strikethrough,|,undo,redo,|,link,unlink,image",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : "",
add_form_submit_trigger : false
});
$('#notice_action-submit').click(function() {