Roo/form/HtmlEditor/ToolbarContext.js
authorEdward <edward@roojs.com>
Fri, 19 Jun 2015 07:26:02 +0000 (15:26 +0800)
committerEdward <edward@roojs.com>
Fri, 19 Jun 2015 07:26:02 +0000 (15:26 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index 9a2112f..61fc6a8 100644 (file)
@@ -636,21 +636,20 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
         
         var _this = this;
         
-        Roo.log('body?????!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(nm);
+        if(nm == 'BODY'){
+            tb.addSeparator();
         
-        tb.addSeparator();
-        
-        tb.addButton( {
-            text: 'Stylesheets',
-    
-            listeners : {
-                click : function ()
-                {
-                    _this.editor.fireEvent('stylesheetsclick', _this.editor);
+            tb.addButton( {
+                text: 'Stylesheets',
+
+                listeners : {
+                    click : function ()
+                    {
+                        _this.editor.fireEvent('stylesheetsclick', _this.editor);
+                    }
                 }
-            }
-        });
+            });
+        }
         
         tb.addFill();
         tb.addButton( {