Issue Bug Closed

#85182Editing a existing link in ckeditor does not keep the CSS-Class value.

Frédéric Lebel 06/08/18, 05:17 updated 10/02/18, 10:46

Description

How to reproduce

Create a link in the ckeditor with a “bouton compact” CSS-Class.

Edit again the same link.

Then, the class name combination is not set in the modal.

Config:

Add a class name combination in the ckeditor config : Default.yml.

buttons:
link:
properties:
class:
allowedClasses: ‘bouton compact,bouton compact fond-rouge,bouton compact fond-jaune,bouton compact fond-bleu,bouton bouton-tiers,bouton bouton-tiers fond-rouge,bouton bouton-tiers fond-jaune,bouton bouton-tiers fond-bleu,bouton bouton-demi,bouton bouton-demi fond-rouge,bouton bouton-demi fond-jaune,bouton bouton-demi fond-bleu,bouton pleine-largeur,bouton pleine-largeur fond-rouge,bouton pleine-largeur fond-jaune,bouton pleine-largeur fond-bleu’

Also, the code I removed seems to be dead code from rtehtmlarea.

Thanks for reading.

Reviews 2