Stop htmlField inheriting main css in custom control
Hi,
I am using the HTMLField in a custom control and for the pupose it is intended it is working great. The only issue i have is that the background for the page is included in the editor. I know with the radEditor you can stop the editor loading the page css and just the custom one, but looking over the properites of the htmlField i cant seem to find out if i can even do it.
My Declaration:
<sf:htmlfield id="Text" runat="server" width="99%" height="370px" displaymode="Write" fixcursorissue="True" CssClass="testimonial_text" EditorContentFilters="DefaultFilters" EditorToolsConfiguration="Custom" EditorConfigurations="~/Custom/Modules/ToolsFile.xml" EditorToolsConfigurationKey="ToolsFile" ContentAreaCssFile="~/Resources/styles/Editor.css"></sf:htmlfield>Hi Roberto Modica,
Try setting the ContentAreaCssFile property in the code-behind and see whether the the style sheet gets applied. I'm sending you a sample on how to do that:
protected void Page_Load(object sender, EventArgs e) var myHtmlField = this.Text; myHtmlField.ContentAreaCssFile = "~/Resources/styles/Editor.css";Thanks Jen,
it was me, i needed to clear the cache in firefox and it started working, sorry i should have posted.
Rob