2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: fckxhtmlentities.js
14
* This file define the HTML entities handled by the editor.
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
20
var FCKXHtmlEntities = new Object() ;
22
if ( FCKConfig.ProcessHTMLEntities )
24
FCKXHtmlEntities.Entities = {
61
// Symbols and Greek Letters
130
// Other Special Characters
133
// '&':'amp', // This entity is automatically handled by the XHTML parser.
134
// '<':'lt', // This entity is automatically handled by the XHTML parser.
135
// '>':'gt', // This entity is automatically handled by the XHTML parser.
161
FCKXHtmlEntities.Chars = '' ;
163
// Process Base Entities.
164
for ( var e in FCKXHtmlEntities.Entities )
165
FCKXHtmlEntities.Chars += e ;
167
// Include Latin Letters Entities.
168
if ( FCKConfig.IncludeLatinEntities )
240
for ( var e in oEntities )
242
FCKXHtmlEntities.Entities[ e ] = oEntities[ e ] ;
243
FCKXHtmlEntities.Chars += e ;
249
// Include Greek Letters Entities.
250
if ( FCKConfig.IncludeGreekEntities )
304
for ( var e in oEntities )
306
FCKXHtmlEntities.Entities[ e ] = oEntities[ e ] ;
307
FCKXHtmlEntities.Chars += e ;
313
// Create and Compile the Regex used to separate the entities from the text.
314
FCKXHtmlEntities.EntitiesRegex = new RegExp('[' + FCKXHtmlEntities.Chars + ']|[^' + FCKXHtmlEntities.Chars + ']+','g') ;
315
// FCKXHtmlEntities.EntitiesRegex.compile( '[' + FCKXHtmlEntities.Chars + ']|[^' + FCKXHtmlEntities.Chars + ']+', 'g' ) ;
319
// Even if we are not processing the entities, we must respect the .
320
FCKXHtmlEntities.Entities = { ' ':'nbsp' } ;
321
FCKXHtmlEntities.EntitiesRegex = /[ ]|[^ ]+/g ;
b'\\ No newline at end of file'