Hi there
I have a radEditor that is set to render its content area as an IFrame, using a custom version of EditorContentArea.css. The problem is, that the styles in the custom stylesheet file do not seem to be utilised by the elements in the rendered IFrame.
The IFrame is rendered as this in Firefox:
<iframe frameborder="0" style="width: 100%; height: 100%; margin: 0px; padding: 0px;" id="[myeditorclientid]_contentIframe">
<html>
<head></head>
<body>
<div class="editorcontentdiv2">
<p class="editorcontent2">My dog has no nose</p>
</div>
</body>
</html>
</iframe>
The markup for the editor is provided with the correct location for the css file in question:
<CssFiles>
<trk:EditorCssFile Value="~/App_Themes/PD_RadSkins/PD_RadSkin_1/EditorContentArea.PD_RadSkin_1.css" />
</CssFiles>
and I also use a preload routine to add all the required CSS files for the page in Page_Load, something like this:
AddCss("~/App_Themes/PD_RadSkins/PD_RadSkin_1/EditorContentArea.PD_RadSkin_1.css", Me.Page)
This method works for all the other CSS files, but when it comes to the IFrame content, the custom styles in my EditorContentArea css file are not applied. Sure enough, when I examine the <p> or <div> elements of the generated markup, e.g. in Firebug, it reports that: "The element has no style rule".
What could be causing this situation? Please don't advise using DIV mode, I need the IFrame functionality.
Thanks for any advice you can provide.
I have a radEditor that is set to render its content area as an IFrame, using a custom version of EditorContentArea.css. The problem is, that the styles in the custom stylesheet file do not seem to be utilised by the elements in the rendered IFrame.
The IFrame is rendered as this in Firefox:
<iframe frameborder="0" style="width: 100%; height: 100%; margin: 0px; padding: 0px;" id="[myeditorclientid]_contentIframe">
<html>
<head></head>
<body>
<div class="editorcontentdiv2">
<p class="editorcontent2">My dog has no nose</p>
</div>
</body>
</html>
</iframe>
The markup for the editor is provided with the correct location for the css file in question:
<CssFiles>
<trk:EditorCssFile Value="~/App_Themes/PD_RadSkins/PD_RadSkin_1/EditorContentArea.PD_RadSkin_1.css" />
</CssFiles>
and I also use a preload routine to add all the required CSS files for the page in Page_Load, something like this:
AddCss("~/App_Themes/PD_RadSkins/PD_RadSkin_1/EditorContentArea.PD_RadSkin_1.css", Me.Page)
This method works for all the other CSS files, but when it comes to the IFrame content, the custom styles in my EditorContentArea css file are not applied. Sure enough, when I examine the <p> or <div> elements of the generated markup, e.g. in Firebug, it reports that: "The element has no style rule".
What could be causing this situation? Please don't advise using DIV mode, I need the IFrame functionality.
Thanks for any advice you can provide.