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-1 and span.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

2pha created an issue. See original summary.

cilefen’s picture

Issue tags: -CKEditor styles not showing due to limit allowed html tags

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.1.10 (June 4, 2021) and Drupal 9.2.10 (November 24, 2021) were the last bugfix releases of those minor version series. Drupal 9 bug reports should be targeted for the 9.3.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Project: Drupal core » CKEditor 4 - WYSIWYG HTML editor
Version: 9.4.x-dev » 1.0.x-dev
Component: ckeditor.module » Code

CKEditor has been removed from core, CKEditor 4 is removed from Drupal Core in 10.0.0