Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Note that new version 1.2.x-dev is now available and solves all issues that have been experienced with Drupal 10.2. This is now the recommended release for all versions of Drupal.

This module provides a filter for CKEditor 5 that allows the administrator to manually define an allowed list of HTML tags when using the 'Limit allowed HTML tags' filter in a text format.
This is basically reinstating the functionality that we had in CKEditor 4 and may thus be very useful for anyone who is migrating a site from CKEditor 4.
When first installing Drupal 10 and the associated CKEditor 5 one of the first things that I noticed was that when I selected the 'Limit allowed HTML tags' filter in my text format the list of 'Allowed HTML tags' had become a readonly field. In our previous Drupal 9 / CKEditor 4 sites we had quite an extensive list of tags and attributes that were allowed and our editors were very keen to retain this functionality in Drupal 10. Reading the documentation told me that the solution was to write new CKEditor plugins to support the extra tags/attributes but these struck me as an unnecessary amount of work.
I have therefore created this module to contain a new filter that is a copy of the 'Limit allowed HTML tags' filter in all ways apart from the fact that the list of 'Allowed HTML tags' is an editable field.

To make use of this module follow these steps:

  • Install the module
  • Edit a text format at /admin/config/content/formats
  • From the list of filters make sure that you select 'Limit allowed HTML tags and correct faulty HTML - Editable tag list' rather than the original 'Limit allowed HTML tags and correct faulty HTML'
  • Scroll down the page and select the 'Limit allowed HTML tags and correct faulty HTML - Editable tag list' tab /li>
  • You will now be able to edit the 'Allowed HTML tags' list to allow any tags/attributes that you require

Note that by installing this filter you are taking full responsibility for manually maintaining the list of HTML tags that are required. If you had installed the original (core provided) 'Limit allowed HTML tags and correct faulty HTML' filter then the list of allowed tags would have been automatically maintained by JQuery so that tags would be dynamically added and removed as you enabled filters and added buttons to the toolbar. If you are going to go ahead and use this filter then it may be a good idea to temporarily install the original filter in order to see the list of HTML tags that it recommends with your current toolbar configuration - you can then disable the original filter and paste the list into this filter along with any extra tags/attributes that you require.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.5.x-dev Dev Oct 17, 2024
1.4.x-dev Dev Oct 16, 2024
1.3.x-dev Dev Oct 16, 2024