This is a migrated thread and some comments may be shown as answers.

[Solved] Issues With Content Area Styles & Themes

1 Answer 190 Views
Editor
This is a migrated thread and some comments may be shown as answers.
rdochert
Top achievements
Rank 1
rdochert asked on 22 Oct 2007, 11:29 PM
No matter what i do, i cannot seemt to prevent RadEditor prometheus from inheriting the background image of the page it is on for the content area of the editor. My site uses Themes to set the background image of the pages of the application and despite using:

RadEditor1.CssClasses.Clear()
... and
RadEditor1.CssClasses.Add("Links class ", "a.link")
... and 
RadEditor1.CssFiles =
... and
ContentAreaCssFile="~\CSS\Login.css"
... and
editing the EditorContentArea.css file.

nothing works! the background image is still there and the "Css Styles" drop down is always filled with lots of useless radeditor styles.

My radEditor declaration is as simple as it gets:
<telerik:RadEditor runat="server" ID="RadEditor1" EditModes="All" Height="500px" Width="100%" Visible="true">
</telerik:RadEditor>
 
I didnt have any issues with this at all with the non-prometheus version. I only wanted to switch because this one seems to load so fast.

any help gratefully accepted.
rob

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Oct 2007, 03:50 PM
Hello Rob,

Try to override the background image by using the code below:

<script type="text/javascript">
function OnClientLoad(editor, args)
{
    editor.get_Document().body.style.backgroundImage = "url(none)";
}
</script>
<telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad"  runat="server"> 
    <Content>
    </Content>
</telerik:RadEditor>

Please also try to reproduce the problem with the latest build of RadEditor which you can download from here.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
rdochert
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or