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

Spell check only "new text"

3 Answers 50 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
Evan
Top achievements
Rank 1
Evan asked on 14 Jan 2013, 04:06 PM
Hello,

I am using the WPF RadRichTextBox as an email editor to reply to inbound emails.  Like in most email applications, the body of the inbound email is included as quoted text within the email editor.

I would somehow like to prevent the quoted text from being checked for spelling, both by the inline red squiggly lines and by the spell checking dialog.  I am already providing my own implementations of the ISpellChecker and ISpellCheckingDialog interfaces.

One possible solution I considered would be to load the quoted text, and then silently run the spell checker and "Ignore All" for each misspelling prior to allowing the user to edit the reply.  The down side to this approach is that if the original email contains any misspellings, those words would be added to the black list of Ignored words, and they would not be identified as misspelled if the user types them in the reply.

Is there a better solution for this issue?  For example, is there a way to mark a DocumentElement to suppress the spelling inspection of any text it contains?  Or is there a way to ignore a specific instance of a word instead of Ignore All?

Any help is greatly appreciated.

Thanks,
Evan

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 16 Jan 2013, 07:17 AM
Hi Evan,
Unfortunately excluding specific parts of the document from spell checking isn't possible with the current implementation. This feature is in our to-do list, but isn't scheduled for implementation yet.

Don't hesitate to contact us if you have other questions.


Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Evan
Top achievements
Rank 1
answered on 16 Jan 2013, 02:43 PM
Ok, thanks for the info.  Is ignoring a single instance of a misspelled word possible?
0
Boby
Telerik team
answered on 17 Jan 2013, 08:18 AM
Hi Evan,
Sorry for not being clear enough, but unfortunately ignoring any parts of the document - spans, words, or bigger chunks are not possible for now.

Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
SpellChecker
Asked by
Evan
Top achievements
Rank 1
Answers by
Boby
Telerik team
Evan
Top achievements
Rank 1
Share this question
or