Roo/form/HtmlEditor.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 04:42:45 +0000 (12:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 04:42:45 +0000 (12:42 +0800)
Roo/form/HtmlEditor.js

index 160ff65..8e78205 100644 (file)
@@ -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);