Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 08:25:40 +0000 (16:25 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 08:25:40 +0000 (16:25 +0800)
Roo/HtmlEditorCore.js

index 88a6220..7757bda 100644 (file)
@@ -111,14 +111,14 @@ Roo.HtmlEditorCore = function(config){
         
     }, this);
     
-    Roo.each(w, function(tag) {
-        if (b.indexOf(tag) > -1) {
+    Roo.each(b, function(tag) {
+        if (w.indexOf(tag) > -1) {
             return;
         }
-        if (this.white.indexOf(tag) > -1) {
+        if (this.black.indexOf(tag) > -1) {
             return;
         }
-        this.white.push(tag);
+        this.black.push(tag);
         
     }, this);