Spell check on TinyMCE HTML editor

2 posts, 0 answers
  1. Babar
    Babar avatar
    1 posts
    Member since:
    Jun 2011

    Posted 02 Apr 2012 Link to this post


    Been looking for RadSpell implementations with tinyMCE HTML editor but not very clear from found threads

    I tried the simple way by converting a asp.net text area to tinyMCE editor and then runt he RadSpell control on it.

    If it is HTML or ASP.NEt text area spell check works well, but when it is tinyMCE control it can not get the text inside the text area, if I post back the page and then try, text is available for Radspell to check, but HTML tags are also underlined to check.
    After the spell check is completed the editor window does not get the modified contents.

    Kindly suggest a fix to all these problem.
  2. Rumen
    Rumen avatar
    14275 posts

    Posted 03 Apr 2012 Link to this post


    You need to get a reference to the body element of the TinyMCE iframe content area. After that you can implement a custom text source similarly as it is done for RadEditor in the following forum thread on the subject: Problem with spellcheck.

    Using the RadEditor's get_contentAreaElement() you can get a reference to RadEditor's iframe content area element using this code to get a reference to the body tag of the iframe:
    var editorSource = $find('RadEditor1').get_contentAreaElement().contentWindow.document.body;

    You should see in the TinyMCE documentation or forums how to get a reference to the body element and update the above line in the provided in the forum article text source code.

    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