I modified some files for handling some custom html entities not included in the original source.
I needed this update for displaying polish text inside italian text (the default language in the config file is "it" - italian).
I think this should be implemented in future versions, because defining custom html entities could be very useful.
First modify the fckconfig.js file by adding the following lines of code:
FCKConfig.IncludeCustomEntities = true ;
FCKConfig.CustomEntities = {
'Ą':'#260', //Ą will display as Ą
'Ć':'#262'
/* Add as many entities as you like */
};
Then you have to modify editor/_source/internals/fckxhtmlentities.js file. After the lines:
// Include Greek Letters Entities.
if ( FCKConfig.IncludeGreekEntities ) { ... }
you have tu write the following code:
if (FCKConfig.IncludeCustomEntities) {
var oEntities = FCKConfig.CustomEntities;
for ( var e in oEntities )
{
FCKXHtmlEntities.Entities[ e ] = oEntities[ e ] ;
FCKXHtmlEntities.Chars += e ;
}
oEntities = null;
}
I needed this update for displaying polish text inside italian text (the default language in the config file is "it" - italian).
I think this should be implemented in future versions, because defining custom html entities could be very useful.
First modify the fckconfig.js file by adding the following lines of code:
FCKConfig.IncludeCustomEntities = true ;
FCKConfig.CustomEntities = {
'Ą':'#260', //Ą will display as Ą
'Ć':'#262'
/* Add as many entities as you like */
};
Then you have to modify editor/_source/internals/fckxhtmlentities.js file. After the lines:
// Include Greek Letters Entities.
if ( FCKConfig.IncludeGreekEntities ) { ... }
you have tu write the following code:
if (FCKConfig.IncludeCustomEntities) {
var oEntities = FCKConfig.CustomEntities;
for ( var e in oEntities )
{
FCKXHtmlEntities.Entities[ e ] = oEntities[ e ] ;
FCKXHtmlEntities.Chars += e ;
}
oEntities = null;
}
Custom HTML Entities (again)
Then you have to pack the code again using FCKeditor.Packager. Follow this link for more informations http://wiki.fckeditor.net/Developer%27s ... ompression
RE: Custom HTML Entities
That sound like the new AdditionalNumericEntities in version 2.3.2
http://wiki.fckeditor.net/Developer%27s ... icEntities
RE: Custom HTML Entities