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

index b78bd5f..c05b664 100644 (file)
@@ -90,14 +90,16 @@ Roo.HtmlEditorCore = function(config){
         
     }, this);
     
-    if (typeof(this.owner.white) != 'undefined' && this.owner.white) {
-        Roo.each(this.owner.white, function(tag) {
-            if (this.white.indexOf(tag) > -1) {
-                return;
-            }
-            
-        })
-    }
+    Roo.each(w, function(tag) {
+        if (b.indexOf(tag) > -1) {
+            return;
+        }
+        if (this.white.indexOf(tag) > -1) {
+            return;
+        }
+        this.white.push(tag);
+        
+    }, this);