Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@roojs.com>
Wed, 31 Aug 2011 04:37:52 +0000 (12:37 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Aug 2011 04:37:52 +0000 (12:37 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index 34083c8..ac9e5da 100644 (file)
@@ -310,7 +310,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
             
             // update styles
             var st = this.tb.fields.item(0);
-            st.removeAll();
+            st.dataSource.removeAll();
             var cn = sel.className.split(/\s+/);
             var avs = [];
             if (this.styles['*']) {