V
V
Vitaly Sorokin2017-01-19 19:16:20
JavaScript
Vitaly Sorokin, 2017-01-19 19:16:20

How to remove image address translation in CKEditor 4?

Hello.
Today I encountered such a problem in CKEditor:
1. In source editing mode, I insert a link to an image containing & (for example, sample.com?u=1&n=1 )
2. I switch to visual editing mode - the image is displayed
3. I return to editing source - all & in src - replaced by &
At the same time: if I save from source (without switching) - sent to & if from visual editor (or source but after returning from visual) - &
How to solve this problem?
Tried:
in settings to put config.allowedContent = true;
On the server, forcibly changing & to & - works, but you need to be careful not to replace the superfluous, because sometimes you need to leave the replacement characters.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question