How to stop FCKeditor by returning html objects back to their unicode characters

I had a problem with FCKeditor returning the html objects entered in the original view back to their original Unicode views. For example, when I enter €into the original view, switch to html and then back to the original view, the object is replaced with the actual symbol €. As a result, the big problem is that this Unicode character is then sent back to the server, sending character-encoded calls to the database table. Anyone else run into this? I tried many combinations of configuration settings, but none of this helped.

+3
source share
3 answers

The problem was configuring - FCKConfig.ProcessHTMLEntities=true.

Before I tried to change this in the fckconfig.js file, I did not understand that the value was overridden in the secondary custom configuration file that was created by the previous developer.

Thanks Anne.

+1
source

What version of FCKeditor are you using? The current version is 2.6.3. I tested the € symbol in my demo by copying €to the original view, switching back to the display, and then back to HTML, ASCII €was saved correctly. Essentially, it could be a configuration problem with your FCKEditor installation, or you need to upgrade.

: FCKEditor: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProcessNumericEntities

+3

If you need the same setup for CKEditor 3, you can use this:

config.entities = false;

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.entities

+2
source

Source: https://habr.com/ru/post/1698372/


All Articles