Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 08:49:39 +0000 (16:49 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 08:49:39 +0000 (16:49 +0800)
Roo/HtmlEditorCore.js

index 017fda0..089dd68 100644 (file)
@@ -1068,8 +1068,8 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                 node.removeAttribute(n);
                 return;
             }
-            var cwhite = typeof(ed.cwhite) != 'undefined' && ed.cwhite !== false ? ed.cwhite : Roo.HtmlEditorCore.cwhite;
-            var cblack = typeof(ed.cblack) != 'undefined' && ed.cwhite !== false ? ed.cblack : Roo.HtmlEditorCore.cblack;
+            var cwhite = this.cwhite;
+            var cblack = this.cblack;
             
             
             var parts = v.split(/;/);