Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

nbsp

2,681 sites Security covered
View on drupal.org

Minimal module to insert a non-breaking space ( ) into the content by pressing Ctrl+Space or using the provided button.

Uses

During content creation the author may add a non-breaking space ( ) to prevent an automatic line break.
To avoid that a company’s 2-word name is split onto 2 separate lines.

As the non-breaking space are an invisible character, they are highlighted in blue on the CKEditor.

Installation

Install the module then follow the instructions for installing the CKEditor plugins below.

Configuration

Go to the 'Text formats and editors' configuration page: /admin/config/content/formats, and for each text format/editor combo where you want to use NBSP, do the following:

  • Drag and drop the 'NBSP' button into the Active toolbar.
  • Enable filter "Cleanup NBSP markup".
  • if the "Limit allowed HTML tags and correct faulty HTML" filter is disabled you dont have anything to do with this text format.
    Otherwise, add the <nbsp> tag in the "allowed HTML tags" field (Eg. <nbsp>).

Which version should I use?

NBSP is now available for both Drupal 8, Drupal 9 & Drupal 10!

  • if you are running Drupal 8.7.x, use NBSP 8.x-1.x.
  • if you are running Drupal 8.8.x - 8.9.x, use NBSP 8.x-2.0-alpha1.
  • if you are running Drupal 9.x, use NBSP 2.x.
  • if you are running Drupal 10.x, use NBSP 3.x.
  • if you are running Drupal 11.x-dev, use NBSP 3.x.
Drupal Core CKEditor NBSP 8.0.x 4.x 1.x 8.8.x 4.x 8.x-2.0-alpha1 9.x 4.x 8.x-2.1 9.x 5.x 8.x-2.2 10.x 4.x 8.x-2.2 10.x 5.x 3.0.x 11.x-dev 5.x 3.0.x

Dependencies

The Drupal 8 version of NBSP requires Editor and CKEditor.

Supporting organizations

This project is sponsored by Antistatique. We are a Swiss Web Agency, Visit us at www.antistatique.net or Contact us.

Activity

Total releases
4
First release
Mar 2025
Latest release
6 months ago
Release cadence
67 days
Stability
75% stable

Release Timeline

Releases

Version Type Release date
3.1.1 Stable Oct 6, 2025
3.1.0 Stable Aug 11, 2025
3.1.x-dev Dev Aug 11, 2025
3.0.3 Stable Mar 20, 2025