Article information Article relates to RadEditor 7.x, RadEditor "Prometheus" Created by Rumen Jekov Last modified 2008/04/11 Last modified by Georgi Popivanov
It is sometimes necessary to escape some text in order to process it programmatically later. Say we are creating an email template with name placeholders like this:
Hi, <#FirstName#> <#LastName#>
We would not want the special symbols to be marked as SpellCheck errors. SOLUTION
RadSpell that ships with RadEditor can have a custom definition of its client-side text source. We can define such a source that will transform the special symbols to something that looks like a HTML tag. Such tags are not processed by the SpellCheck engine, and you can replace them back after the corrections. The < and > symbols in the RadEditor contents area will be represented by their respective HTML entities -- > and <, so we need to define a text source that will skip those. We use some regular expressions to do that:
Article relates to
RadEditor 7.x, RadEditor "Prometheus"
Last modified by
Note that, you have to add the CustomSpellCheck tool into the ToolsFile.xml and also remove the AjaxSpellChecker:
<tool name="CustomSpellCheck" />
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.