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

Spell check on TinyMCE HTML editor

1 Answer 120 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Babar
Top achievements
Rank 1
Babar asked on 02 Apr 2012, 10:54 AM
Hi,

Been looking for RadSpell implementations with tinyMCE HTML editor but not very clear from found threads
http://www.telerik.com/community/forums/aspnet/spell/radspell-with-tinymce-textbox.aspx 

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.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Apr 2012, 12:57 PM
Hello,

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.

Greetings,
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
Spell
Asked by
Babar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or