X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Roo.form.HtmlEditor.ToolbarContext.stores.js;h=87420f87eb774912f3707e2c4eb8a435f4bc905d;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=1524f8b36295809a3eedd6da3c6494f8aa0d86f5;hpb=66045a306ea4ad661bf28ed5d812eab9b9763995 diff --git a/Roo.form.HtmlEditor.ToolbarContext.stores.js b/Roo.form.HtmlEditor.ToolbarContext.stores.js index e69de29b..87420f87 100644 --- a/Roo.form.HtmlEditor.ToolbarContext.stores.js +++ b/Roo.form.HtmlEditor.ToolbarContext.stores.js @@ -0,0 +1,41 @@ +Roo.form.HtmlEditor.ToolbarContext.stores = { + + 'font-family' : { + + xtype : 'Store', + // load using HTTP + proxy: { + xtype : 'HttpProxy', + url: baseURL + '/Roo/Core_enum', + method: 'GET' + }, + reader : { + xtype: 'JsonReader', + xns: Roo.data, + id : 'id', + root : 'data', + totalProperty : 'total', + + fields : [ + { name:'id','type':'int'}, + { name : 'val' , mapping: 'name'} , + { name:'display', mapping: 'display_name'} + ] + }, + listeners : { + beforeload : function(st,o) + { + // compnay myst be set.. + o.params.etype = 'HtmlEditor.font-family'; + o.params.active = 1; + //o.params._requestMeta=0; // do not fetch meta.. + this.reader.metaFromRemote = 1; + }, + loadexception : Pman.loadException + + }, + sortInfo: { + field: 'display', direction: 'ASC' + } + } +};