X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FHtmlEditorCore.js;h=eee4f0510ebe13a027ce581ca569b3b7b726b364;hb=825a74c132eae7b97e43866ab3c00ff122fb239c;hp=101e484256e910dae30567db882569cd7e7fbd3b;hpb=ebffc882d3118ac9a90868c3d37356b7e63fe75e;p=roojs1 diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 101e484256..eee4f0510e 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -19,6 +19,8 @@ Roo.HtmlEditorCore = function(config){ Roo.HtmlEditorCore.superclass.constructor.call(this, config); + + this.addEvents({ /** * @event initialize @@ -70,8 +72,16 @@ Roo.HtmlEditorCore = function(config){ * @param {Roo.HtmlEditorCore} this */ editorevent: true + }); - + + // at this point this.owner is set, so we can start working out the whitelisted / blacklisted elements + + // defaults : white / black... + this.applyBlacklists(); + + + }; @@ -119,8 +129,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { clearUp: true, + // blacklist + whitelisted elements.. + black: false, + white: false, - + bodyCls : '', /** * Protected method that will not generally be called directly. It @@ -130,7 +143,6 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { getDocMarkup : function(){ // body styles.. var st = ''; - Roo.log(this.stylesheets); // inherit styels from page...?? if (this.stylesheets === false) { @@ -148,23 +160,27 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { st = ''; - } else { - Roo.each(this.stylesheets, function(s) { - st += '' - }); - + } else { + st = ''; } st += ''; + var cls = 'roo-htmleditor-body'; + + if(this.bodyCls.length){ + cls += ' ' + this.bodyCls; + } return '
' + st + //' + - ' '; + '