Problem with links in the ckeditor

Asked

Viewed 167 times

6

When I add one link of the kind www.google.com?var=1&var=2&var=3 in the Ckeditor it automatically inserts &amp leaving the link as follows: www.google.com?var=1&ampvar=2&ampvar=3

Someone already had this problem and found the solution?

1 answer

4

According to this thread in Ckeditor support, it is necessary to change a configuration so that the & are not "escaped" when inside links:

CKEDITOR.config.forceSimpleAmpersand = true;

After enabling this setting (which can also be done for an individual editor instead of globally on the page) the created editors will not convert & in & within links, but will continue to do so in the normal content of the page (as expected). I can’t say under what other circumstances this behavior also occurs, if any.

  • I found this file in my config.js, made the change and only after all this I discovered that my Ckeditor was all changed. It doesn’t even load the plugin.js :(

  • @Marcelomatzembacher I don’t understand... you changed the source of Ckeditor? The idea was to put the line up in your own script.

  • I didn’t change the font, I’m just supporting a web product that uses Ckeditor, and it’s been modified to not display all available features.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.