문제

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