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

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