I am using FCKeditor in rails app. Input:

™ © ® ¢ € ¥ £ ¤

Present Output (ISO-8859-1 Entities):

™ © ® ¢ € ¥ £ ¤

Expected output (Entity codes):

¿ ¡ « » § ¶ † ‡ • – —

Please someone help me to get the expected output.

有帮助吗?

解决方案

From the fine manual:

ProcessNumericEntities

This option tells the editor to transform all characters that are out of the ASCII table to their relative Unicode numeric entities.

For example, if this option is set to true, the Ϣ sign will be transformed to Ϣ. By default the option is set to false.

Example:

FCKConfig.ProcessNumericEntities = true ;

So you just need to figure out where your FCKEditor configuration file is and add FCKConfig.ProcessNumericEntities = true; to it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top