make css whitelist case insensitive due to stripo using Margin?
authorAlan <alan@roojs.com>
Tue, 31 Aug 2021 02:28:20 +0000 (10:28 +0800)
committerAlan <alan@roojs.com>
Tue, 31 Aug 2021 02:28:20 +0000 (10:28 +0800)
Roo/HtmlEditorCore.js

index fb1f817..e17b998 100644 (file)
@@ -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;