Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module provides a text filter to clean up HTML generated by CKEditor, specifically removing non-breaking spaces within table cells that can cause JavaScript errors with charting libraries. It's designed to ensure compatibility with data charting tools like wet-boew.

This module was created using
  1. drush gen module AND
  2. drush gen plugin:filter using
    the reversible option

The purpose is to rewrite unwanted nbsp related table td element markup generated by the ckeditor. If you're using ckeditor and your data charts library is throwing a javascript exception you will want to look at this module.
The text filter plugin is optionally enabled via your text format used by your wysiwyg in this case ckeditor but can be used with other editors.

The example filter was changed as follows:

This module provides a configurable text filter which was originally designed to remove <td>&nbsp;</td> and replace with <td></td>. The ckeditor module inserts these &nbsp; and the resulting html does not jive with certain versions of charts javascript libraries such as the wet-boew 4.0 js.

Using v4.0 wet-boew charts library OR similar data charts libraries. The wxt distribution

and includes a version of data charts. Other distributions or drupal stacks may also have a need for this module if they use a data charts library that is negatively affected by the default ckeditor 4 / ckeditor 5 behavior.

More explanation and screenshots in this issue:

#3377521: ckeditor 4 or 5 breaks wet-boew v4 charts, there is a solution

Features

Basic functionality, provides a text filter that can be used with ckeditor.

Post-Installation

Install this module then go to your text formats and look for "Charts Compatibility", put the checkbox to on, then review the corresponding options and change them as you wish. Defaults are included.

Additional Requirements

Recommend Drupal 10+, ckeditor 5 or ckeditor 4.

Originally intended to be used with the wxt distribution but may have other uses.

Similar projects

Other modules available such as nbsp but this one is a bit unique in it's default configuration and configurability.

Supporting this Module

Entreprise 7pro.ca Inc is supporting this module

Community Documentation

README.md

Enjoy!

Activity

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jul 2, 2026