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

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