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

index c05b664..88a6220 100644 (file)
@@ -82,6 +82,7 @@ Roo.HtmlEditorCore = function(config){
     var b = typeof(this.owner.black) != 'undefined' && this.owner.black ? this.owner.black : [];
     
     this.white = [];
+    this.black = [];
     Roo.each(Roo.HtmlEditorCore.white, function(tag) {
         if (b.indexOf(tag) > -1) {
             return;
@@ -99,7 +100,27 @@ Roo.HtmlEditorCore = function(config){
         }
         this.white.push(tag);
         
-    }, this); 
+    }, this);
+    
+    
+    Roo.each(Roo.HtmlEditorCore.black, function(tag) {
+        if (w.indexOf(tag) > -1) {
+            return;
+        }
+        this.black.push(tag);
+        
+    }, this);
+    
+    Roo.each(w, function(tag) {
+        if (b.indexOf(tag) > -1) {
+            return;
+        }
+        if (this.white.indexOf(tag) > -1) {
+            return;
+        }
+        this.white.push(tag);
+        
+    }, this);