From d1d20daab8eeeb35ba8ccfba1fae4d884b0dc393 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 17 Mar 2015 16:25:21 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index c05b664c05..88a62208f8 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -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); -- 2.39.2