X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FHtmlEditorCore.js;h=eee4f0510ebe13a027ce581ca569b3b7b726b364;hb=825a74c132eae7b97e43866ab3c00ff122fb239c;hp=8addbee0079963584b1b43af38812fcda0bd17fc;hpb=fa713eab0680b19b73c871d31f6db0e7fa57e1f6;p=roojs1 diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 8addbee007..eee4f0510e 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -72,6 +72,7 @@ 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 @@ -132,7 +133,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { black: false, white: false, - + bodyCls : '', /** * Protected method that will not generally be called directly. It @@ -142,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) { @@ -160,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 + //' + - ' '; + '