Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 08:52:58 +0000 (16:52 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 08:52:58 +0000 (16:52 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index 0e444ff..8c8b0e4 100644 (file)
@@ -571,7 +571,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
             if (opts) {
                 // opts == pulldown..
                 tb.addField( new Roo.form.ComboBox({
-                    store:   typeof(tbc.stores[i]) != 'undefined' ?  tbc.stores[i] : new Roo.data.SimpleStore({
+                    store:   typeof(tbc.stores[i]) != 'undefined' ?  Roo.factory(tbc.stores[i],Roo.data) : new Roo.data.SimpleStore({
                         id : 'val',
                         fields: ['val', 'display'],
                         data : opts