AdditionalNumericEntities"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(New page: == AdditionalNumericEntities == With this setting, you can define a set of characters which will be translated to their relative numeric entities in the output HTML. This is quite useful ...)
 
 
Line 1: Line 1:
== AdditionalNumericEntities ==
 
 
 
With this setting, you can define a set of characters which will be translated to their relative numeric entities in the output HTML. This is quite useful if you don't want single quotes (') to be inserted in the text (being transformed to ′):
 
With this setting, you can define a set of characters which will be translated to their relative numeric entities in the output HTML. This is quite useful if you don't want single quotes (') to be inserted in the text (being transformed to ′):
 
<pre>FCKConfig.AdditionalNumericEntities = "'"&nbsp;;
 
<pre>FCKConfig.AdditionalNumericEntities = "'"&nbsp;;
Line 7: Line 5:
 
<pre>FCKConfig.AdditionalNumericEntities = "'|&gt;|&lt;|\\+"&nbsp;;
 
<pre>FCKConfig.AdditionalNumericEntities = "'|&gt;|&lt;|\\+"&nbsp;;
 
</pre>  
 
</pre>  
 
 
 
'''NOTE''': that the plus sign has been escaped with double backslashes because it is a special character in regular expressions.
 
'''NOTE''': that the plus sign has been escaped with double backslashes because it is a special character in regular expressions.
  
Being it a regular expression, it gives you the flexibility to make complex selection of characters.  
+
Being it a regular expression, it gives you the flexibility to make complex selection of characters.
  
 
Examples:
 
Examples:

Latest revision as of 15:21, 19 March 2008

With this setting, you can define a set of characters which will be translated to their relative numeric entities in the output HTML. This is quite useful if you don't want single quotes (') to be inserted in the text (being transformed to ′):

FCKConfig.AdditionalNumericEntities = "'" ;

This is a "regular expression" like setting where matches must return only one character. So if you want to set a list of chars, you can separate them by a pipe (|). For example: you want to transform ', >, < and + to their numeric entities:

FCKConfig.AdditionalNumericEntities = "'|>|<|\\+" ;

NOTE: that the plus sign has been escaped with double backslashes because it is a special character in regular expressions.

Being it a regular expression, it gives you the flexibility to make complex selection of characters.

Examples:

  • Everything that is not a space, a ASCII or a Cyrillic char.
FCKConfig.AdditionalNumericEntities = "[^ A-z\\u0410-\\u044F]" ;
  • Single quotes, numbers and capitalized letters.
FCKConfig.AdditionalNumericEntities = "'|[0-9A-Z]" ;
This page was last edited on 19 March 2008, at 15:21.