Problem/Motivation

When working with the latest 8-rc3 predefined element styles, those custom css classes get removed if the filter for "Limit allowed HTML tags and correct faulty HTML" is activated. Thus, the rendered body text has no classes in the frontend and the styles dropdown in the ckeditor gets deactivated in the backend.

Workaround

Explicitly allow the "class" attribute to the elements you are styling. e.g. <a href hreflang class> <p class>

Remaining tasks

Revert former behavior: allowing classes defined by the styles modules.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tassilogroeper created an issue. See original summary.

Wim Leers’s picture

Title: "Styles Dropdown" entries get striped by "Limit allowed HTML tags and correct faulty HTML"-Filter » "Styles Dropdown" entries get stripped by "Limit allowed HTML tags and correct faulty HTML"-Filter
Wim Leers’s picture

Status: Active » Fixed

In the 8.0.1 release, this happens automatically! :) I just manually tested to make sure.

Wim Leers’s picture

Component: editor.module » ckeditor.module

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.