Problem/Motivation
When having ckeditor styles with multiple classes, they are not displayed when "Limit allowed HTML tags and correct faulty HTML" does not specifically specify the classes.
Steps to reproduce
- Edit the ckeditor settings and add the "styles" button.
- Add the styles:
span.pt-1 | pt-1andspan.pt-1.d-inline-block | pt-1 inline block(notice 2 classes on the second style) - Enable the Limit allowed HTML tags and correct faulty HTML".
- in the "Limit allowed HTML tags and correct faulty HTML" textarea, make sure it is allowing the span tag with
<span id class>.
Here you would expect both of the custom styles to be available when using the ckeditor, as the limit should allow all classes, but only the first is available.
Changing the "Limit allowed HTML tags and correct faulty HTML" span setting from <span id class> to <span id class="pt-1 d-inline-block"> now allows for both styles to be available in the ckeditor.
Comments
Comment #2
cilefen commentedComment #5
quietone commentedCKEditor has been removed from core, CKEditor 4 is removed from Drupal Core in 10.0.0