Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Extended HTML Filter

Security covered Under active development 2,058 sites

This module extends Drupal's HTML filter to allow the use of "style" attributes within CKEditor, enabling features like resizing tables. You can configure which specific styles are permitted through the module's settings.

This module extends Drupal's HTML Filter, to allow the ability to use "style" attributes in the CKEditor.
Initially, this module was created to solve the issue of resizing tables inside CKEditor.
We have added a configuration to allow specific styles to be used with this filter, you can configure them from "/admin/config/content/extended-html-filter".

Installation:

  1. Install module as usual: Install contrib modules.
  2. Go to Extended HTML Filter Settings (/admin/config/content/extended-html-filter) and whitelist the style attributes you want to use, by default width and height are allowed.
  3. Go to Text formats and editors (/admin/config/content/formats) and configure the text editor that uses CKEditor.
  4. Scroll down to (Enabled Filters) and disable (Limit allowed HTML tags and correct faulty HTML) and enable (Extended HTML Filter).
  5. Scroll down to (Filter Settings) and allow some HTML tags from (Allowed HTML Tags) text field, add the (style) attribute to the HTML tag that you want to use inline style on it and hit save.

Sponsored and developed by:

Drupal 8–10 · not 11

Ask your assistant about Extended HTML Filter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jun 2023
Latest release
2 weeks ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.4 Stable 8–10 Nov 3, 2026
1.0.3 Stable 8–10 Jul 10, 2024
1.0.2 Stable 8–10 Jun 5, 2023