radeditor with black background

2 posts, 0 answers
  1. Troika
    Troika avatar
    101 posts
    Member since:
    Feb 2013

    Posted 15 Apr 2013 Link to this post

    i have inserted a radeditor but it appears with black background so i cant see the text  i'm writting why is this happening? i ahve changed the skin but it stills all dark when i write some text
  2. Vessy
    Admin
    Vessy avatar
    1985 posts

    Posted 18 Apr 2013 Link to this post

    Hello,

    To solve the issue set the CssFiles property as explained in this help article: Content Area Appearance Problems.

    Another possible way for setting the background (or any other style) of the RadEditor's content is to do it on the client. For example:
    <telerik:RadEditor ID="RadEditor1" Width="100%" Height="600px" runat="server" OnClientLoad="OnClientLoad">
    </telerik:RadEditor>
    <script type="text/javascript">
        function OnClientLoad(editor, args) {
            var style = editor.get_ContentArea().style;
            style.backgroundColor = "White";
        }
    </script>

    I hope this information would be helpful for you.

    Regards,
    Veselina Raykova
    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