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

body css

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
majsty
Top achievements
Rank 1
majsty asked on 08 Jun 2010, 03:19 AM
Is there any way to remove the body { background-image: none; } element from the editor CSS? I can't see it defined anywhere in the editor styles but it is coming through in one of the webresource.axd stylesheets. This is preventing <body background=""> images from being displayed. Overriding the background-image value to the correct image has been considered, and is not an option for us in this case.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jun 2010, 10:24 AM
Hi Majsty,

The background-image:none; property comes from the embedded ContentAreaCss.css file in the Telerik.Web.UI.dll file. I was unable to disable this css property with code, but I was able to override it using the code below:

<script type="text/javascript">
    function OnClientLoad(editor) {
        editor.get_document().body.style.backgroundImage = "url(http://1.bp.blogspot.com/_pqc1Ho2DfSs/SUGX-cWsppI/AAAAAAAADvg/stoIV404REI/s400/telerikGift_2.png)";
    }
</script>
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="OnClientLoad"></telerik:RadEditor>


Sincerely yours,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
majsty
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or