Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

WxT Chart Stability

16 sites Security covered Drupal 10–11

Part of the WXT ecosystem · 4 projects

View on drupal.org

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!

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
5
Tracked since
Jul 2023
Latest release
3 months ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Jul 2, 2026
1.0.0-beta1 Pre-release 10–11 Dec 31, 2024
1.0.0-alpha2 Pre-release Jul 11, 2023
1.0.0-alpha1 Pre-release Jul 11, 2023
1.0.x-dev Dev Jul 11, 2023