Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
styles-dropdown--stiped-by-limt-html.png | 112.96 KB | tassilogroeper |
Comments
Comment #2
Wim LeersComment #3
Wim LeersIn the 8.0.1 release, this happens automatically! :) I just manually tested to make sure.
Comment #4
Wim Leers