Roo/form/HtmlEditor/ToolbarStandard.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 22 May 2012 07:51:55 +0000 (15:51 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 22 May 2012 07:51:55 +0000 (15:51 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 610a690..6aeac86 100644 (file)
@@ -370,7 +370,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
         
         if (this.btns) {
             for(var i =0; i< this.btns.length;i++) {
-                var b = this.btns[i];
+                var b = Roo.factory(this.btns[i],Roo.form);
                 b.cls =  'x-edit-none';
                 b.scope = editor;
                 tb.add(b);