RADeditor Page Context

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    1 posts
    Member since:
    Jul 2012

    Posted 27 Jul 2012 Link to this post

    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?
  2. Rumen
    Rumen avatar
    14416 posts

    Posted 01 Aug 2012 Link to this post


    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,
    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.
Back to Top