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

Ignoring words based on regex

1 Answer 82 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 18 Feb 2009, 04:38 PM
Is there any way to have the RadSpell component ignore words that are detected using a regular expression.  We are evaluating RadEditor and RadSpell for a current project and one of the requirements is that the editor allow insertion of placeholders such as the following:

*----appearancedialog---#
*----------not----------+

We wish for the spellchecker to completely ignore anything between *----# and *----+.  Is there any way to accomplish that currently?  Thanks in advance and we love your stuff!

-Ray

Axispoint Inc.
New York, NY

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Feb 2009, 11:58 AM
Hello Ray,

The AjaxSpellCheck of RadEditor does not spellcheck the content wrapped inside HTML comment tags: <!-- some content -->.

My suggestion is to wrap your custom strings inside HTML comments, e.g.

<!-- *----appearancedialog---#  -->

and

<!-- *----------not----------+ -->

when the AjaxSpellCheck command is fired in the OnClientCommandExecuting event property. Thus the spellchecked will ignore them.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Spell
Asked by
Ray
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or