CKEditor5 Formatting Marks
This module adds a button to CKEditor 5 that toggles the display of invisible formatting characters like spaces, paragraph breaks, and line breaks directly in the editor. These marks are visual aids to help authors identify and manage formatting without altering the actual content.
Adds a CKEditor 5 toolbar button to toggle visual marks for spaces, non-breaking spaces, paragraph marks, and line breaks in the editing view, helping authors spot invisible formatting characters.
It is similar to what common text editors allow (LibreOffice Writer, Microsoft Word,...) .
Features
This module provides a CKEditor 5 plugin that overlays subtle visual indicators directly in the editing area:
- Spaces shown as middle dots (·)
- Non-breaking spaces shown as degree signs (°)
- Paragraph marks (¶) at the end of each paragraph
- Line break marks (↵) at the end of soft breaks
The toggle button does not modify the content — marks are visual only and never saved. Toggle them on to review formatting, off to focus on content.
Post-Installation
- Go to
/admin/config/content/formatsand edit the text format(s) where you want the button to appear - Drag the "Formatting Marks" button into the active toolbar
- Save the format
- In the editor, click the pilcrow (¶) button to show or hide formatting marks
Disclaimer: an LLM agent was used to help build this module