Ignoring words based on regex

2 posts, 0 answers
  1. Ray
    Ray avatar
    1 posts
    Member since:
    May 2008

    Posted 18 Feb 2009 Link to this post

    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:


    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!


    Axispoint Inc.
    New York, NY
  2. Rumen
    Rumen avatar
    13244 posts

    Posted 23 Feb 2009 Link to this post

    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---#  -->


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

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

    Best regards,
    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.
Back to Top