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

index 9cf4b73..ae8d328 100644 (file)
@@ -555,6 +555,10 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
                     width: item.width ? item.width  : 130,
                     listeners : {
                         'select': function(c, r, i) {
+                            if (c.stylename) {
+                                tb.selectedNode.style[c.stylename] =  r.get('val');
+                                return;
+                            }
                             tb.selectedNode.setAttribute(c.attrname, r.get('val'));
                         }
                     }