Roo/form/HtmlEditor/ToolbarStandard.js
authorEdward <edward@roojs.com>
Fri, 19 Jun 2015 03:11:55 +0000 (11:11 +0800)
committerEdward <edward@roojs.com>
Fri, 19 Jun 2015 03:11:55 +0000 (11:11 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 0e9cabc..15c944e 100644 (file)
@@ -476,11 +476,9 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
         // disable everything...
         
         this.tb.items.each(function(item){
-            Roo.log('Itme!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1');
-            Roo.log(item);
            if(
-                item.id != editorcore.frameId+ '-sourceedit'
-                
+                item.id != editorcore.frameId+ '-sourceedit' || 
+                (typeof(item.cls) != 'undefined' && item.cls.indexOf('x-init-enable') === -1)
             ){
                 item.disable();
             }