]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
TinyMCE: Switch default 'simple' layout for customized advanced layout: bold/italic...
authorBrion Vibber <brion@pobox.com>
Wed, 11 Aug 2010 19:10:08 +0000 (12:10 -0700)
committerBrion Vibber <brion@pobox.com>
Wed, 11 Aug 2010 19:10:08 +0000 (12:10 -0700)
plugins/TinyMCE/TinyMCEPlugin.php

index 8dc1d8a5829f0c7437378c50ce8f49b53b231a8e..64d071435340ce0bb14535f82020ddfa60f2d2f6 100644 (file)
@@ -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() {