From 959bc6e96898863117358f26b24a4ec1aa1b180d Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 31 Aug 2021 10:28:20 +0800 Subject: [PATCH] make css whitelist case insensitive due to stripo using Margin? --- Roo/HtmlEditorCore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index fb1f817d89..e17b9985f4 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -1132,7 +1132,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { } //Roo.log() // only allow 'c whitelisted system attributes' - if ( cwhite.length && cwhite.indexOf(l) < 0) { + if ( cwhite.length && cwhite.indexOf(l) < 0 && cwhite.indexOf(l.toLowerCase()) < 0 ) { // Roo.log('(REMOVE CSS)' + node.tagName +'.' + n + ':'+l + '=' + v); //node.removeAttribute(n); return true; -- 2.39.2