RadEditor Disable spellcheking and red underlines

2 posts, 0 answers
  1. Manasi
    Manasi avatar
    1 posts
    Member since:
    May 2016

    Posted 07 May Link to this post

    I have not included the AjaxSpellchecker in my EditorToolGroup. Also I tried removing the httphandler SpellCheckHandler.axd from my web.config.

    But whenever I open my document (xml file ) to edit in RadEditor, it underlines all the xml names/attributes with red color like spell checking.

    I don't want any kind of spell check as well as those red underlines.

    How do I achieve this?

    Thanks.

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 11 May Link to this post

    Hello Manasi,

    The curly red underline is a result of the browser spellchecker that can be disabled by using the spellcheck attribute

    Here you are an example how to set it for the RadEditor content area using OnClientLoad event:
    <telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad"></telerik:RadEditor>
     
    <script>
        function OnClientLoad(sender, args) {
            sender.get_contentArea().setAttribute("spellcheck", "false");
        }
    </script>


    Regards,
    Ianko
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top