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

RADeditor Page Context

1 Answer 42 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 27 Jul 2012, 05:50 PM
I've been able to get External Stylesheets to work. This part works great but it introduces a new issue.

I can't figure out a way to put the content into a certain context of the page.

For example. If the content I'm editing is the content of a page and i'm loading the pages stylesheet. The body background is black but the page wrapper is white with black text (not specified, just natural from the body).

RADeditor loads everything directly into the body which will be black text on black bg.

Is there a way around this? can I insert a wrapper div or something around the content? Can I add a css class to the body so that it could receive the css for the page wrapper?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Aug 2012, 11:36 AM
Hello,

You have three options:

- to import the page stylesheet in the content area, which is the default behavior of RadEditor
- OR to load your own CSS in the content area. You can do that via the CssFiles property to point to your own css file as explained in this article: Setting Content Area Defaults
- OR to not load any CSS in the content area. This can be done by setting the CssFiles property to point to an empty css file.


All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Ryan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or