Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 27 Mar 2012 03:56:07 +0000 (11:56 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 27 Mar 2012 03:56:07 +0000 (11:56 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index dddf36d..22a21a5 100644 (file)
@@ -439,8 +439,13 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
         
         tb.add(nm+ ":&nbsp;");
         
+        var styles = [];
+        for(var i in this.styles) {
+            styles.push(i);
+        }
+        
         // styles...
-        if (this.styles || Roo.encode(this.styles) != '{}') {
+        if (styles && styles.length) {
             
             // this needs a multi-select checkbox...
             tb.addField( new Roo.form.ComboBox({