Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 05:07:03 +0000 (13:07 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 05:07:03 +0000 (13:07 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index ef93703..b272923 100644 (file)
@@ -505,7 +505,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
                 }),
                 name : '-roo-edit-className',
                 attrname : 'className',
-                displayField:'val',
+                displayField: 'val',
                 typeAhead: false,
                 mode: 'local',
                 editable : false,
@@ -546,6 +546,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
                     attrname : i,
                     stylename : item.style ? item.style : false,
                     displayField:'val',
+                    valueField : item.valueField ? item.valueField : 'val',
                     typeAhead: false,
                     mode: 'local',
                     editable : false,