From 7f9ddab04fe3ccdcd8432243521536d7bcfe5966 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 20 Aug 2013 12:42:45 +0800 Subject: [PATCH] Roo/form/HtmlEditor.js --- Roo/form/HtmlEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roo/form/HtmlEditor.js b/Roo/form/HtmlEditor.js index 160ff6522f..8e7820571e 100644 --- a/Roo/form/HtmlEditor.js +++ b/Roo/form/HtmlEditor.js @@ -1178,12 +1178,12 @@ Roo.form.HtmlEditor = Roo.extend(Roo.form.Field, { var l = p.split(':').shift().replace(/\s+/g,''); l = l.replace(/^\s+/g,'').replace(/\s+$/g,''); - if ( cblack.indexOf(l) < 0) { + if ( cblack.indexOf(l) > -1) { // Roo.log('(REMOVE CSS)' + node.tagName +'.' + n + ':'+l + '=' + v); //node.removeAttribute(n); return true; } - + Roo.log() // only allow 'c whitelisted system attributes' if ( cwhite.length && cwhite.indexOf(l) < 0) { // Roo.log('(REMOVE CSS)' + node.tagName +'.' + n + ':'+l + '=' + v); -- 2.39.2