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

index b38db21..9b76d13 100644 (file)
@@ -461,7 +461,9 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                 var b = Roo.factory(this.btns[i],Roo.form);
                 b.cls =  'x-edit-none';
                 
-                if(typeof(this.btns[i].cls) != 'undefined' && this.btns[i].cls.indexOf('x-init-enable')){
+                if(typeof(this.btns[i].cls) != 'undefined' && this.btns[i].cls.indexOf('x-init-enable') !== -1){
+                    Roo.log('get x-init-enable');
+                    Roo.log(this.btns[i]);
                     b.cls += ' x-init-enable';
                 }