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

index 11750c2..c4ed924 100644 (file)
@@ -603,7 +603,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
         if(sourceEditMode){
             Roo.log("disabling buttons");
             this.tb.items.each(function(item){
-                if(item.cmd != 'sourceedit'){
+                if(item.cmd != 'sourceedit' && (typeof(item.cls) != 'undefined' && item.cls.indexOf('x-init-enable') === -1)){
                     item.disable();
                 }
             });