From: Alan Date: Tue, 31 Aug 2021 02:28:20 +0000 (+0800) Subject: make css whitelist case insensitive due to stripo using Margin? X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=959bc6e96898863117358f26b24a4ec1aa1b180d make css whitelist case insensitive due to stripo using Margin? --- 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;