This project is not covered by Drupal’s security advisory policy.
Editorial Notes lets editors attach comment threads, called notes, to selected text inside CKEditor 5, the way comments work in a shared document. A note stays on its passage as the text around it changes. People reply, mention colleagues, react and resolve notes, and open notes can optionally hold back publishing. Notes are never written into the content's HTML.
Status: Stable, for production use. 1.0.0 is the first release. Please report anything that does not behave as described in the issue queue.
Why
CKEditor 5's own comments are part of its paid collaboration features. The open-source CKEditor 5 that Drupal core ships has markers: ranges in the document that move with the text and can stay out of the saved data. This module builds notes on those markers and stores each note's passage outside the field, so it adds no tags to any text format and leaves nothing to strip on output.
Features
Notes on text
- Select text in a CKEditor 5 field and press Add note in the toolbar, or Ctrl+Alt+M (Cmd+Option+M on a Mac). The passage is highlighted while the editor is open.
- The note follows its passage while people type, paste, undo and redo, and switch to source editing and back.
- When the content is saved, each note's passage is stored as a W3C Web Annotation quote with up to 32 characters of context on each side, plus its position. The next time the form opens, the quote is found again even if text around it changed; context decides between repeats of the same words.
- A note whose text was deleted or rewritten is shown as changed or removed, and can be attached to newly selected text.
- The saved HTML is exactly what the editor would save without the module. The Add note button adds no HTML tags, so a format's allowed tags do not change, and uninstalling leaves the content untouched.
Conversations
- Replies, editing and deleting your own messages, and resolving and reopening notes, all without saving the form. Replying to a resolved note reopens it.
- Mentions: type
@and part of a name. Suggestions match the name the site shows for a person (a real-name module can set it), never login names or email addresses, and list only people who can see the note. - Email to mentioned people, to everyone in a note when someone replies, and optionally to the content owner when a note is added. A mention subscribes the person to later replies. Mail is sent after the response, and at most 100 emails an hour go out for one person's notes.
- Reactions from a fixed set of seven, each with a translatable name for screen readers; five are on by default, and they can be turned off.
- Links that open the edit form with a given note selected, used in the emails.
The Notes panel
- On node forms in Claro and in core's Default Admin theme, the panel sits in the form's sidebar and, on wide screens, stays in view while you scroll. In themes that keep that area as vertical tabs, such as Olivero, it follows the fields.
- Open and resolved notes, in reading order. Choosing a note's quote moves the cursor to that text.
- Keyboard operable: Ctrl+Alt+M moves between the text and its note in both directions, Escape returns to the editor, and the mention list follows the ARIA combobox pattern. Changes are announced to screen readers, and highlights never rely on color alone.
- Works with right-to-left text, emoji and astral-plane scripts. Every string is translatable.
Who sees a note
- A note is as private as the text it is on. Seeing it takes the Use editorial notes permission, edit access to the content (node access grants apply) and view access to the field, in the note's translation. Changing it also takes edit access to the field.
- A field-access module that hides a field hides its notes everywhere: in the panel and its counts, the endpoints, the overview, mention suggestions and email.
- Notes on a translatable field belong to their translation. Notes on a field that is not translatable are shared by every translation.
Overview, publishing gate and tools
- With Views installed, Content » Notes lists notes with their quoted text, content, field, author, reply count and last activity. Rows the viewer may not see are left out before paging, so counts reveal nothing about hidden notes. The view can be changed like any other.
- An optional publishing gate, off by default, that holds back content with open notes from going live. It holds on the edit form, Content Moderation's Change to control, the revision Revert forms, the Publish content action, REST and JSON:API, Scheduler 2.x, publishing a workspace, and any other save from code or Drush. See "How the publishing gate decides" below.
- Drush commands:
editorial-notes:list(table or JSON, with filters) andeditorial-notes:purge-resolved. - Optional deletion of resolved notes by cron after a number of days you choose. When a field is removed, its notes stop counting at once and are deleted by cron in chunks.
- Events when notes and messages are created, changed, resolved, moved and deleted, for sending notes to chat or keeping an audit trail; the README has an example subscriber.
Requirements
- Drupal 11.3 or later, or Drupal 12.
- PHP 8.3 or later.
- The core CKEditor 5, Editor, Filter, Text and User modules. No contributed modules. The CKEditor 5 plugin ships already built, so Node.js is needed only to change its source.
- Optional: Views (core) for the notes overview; Content Moderation (core), so the publishing gate acts on moderation states rather than the Published checkbox; Drush 13 for the commands.
- Tested on MariaDB and SQLite.
Installation
Install with Composer, then enable the module:
composer require drupal/editorial_notes drush en editorial_notes
Then go to Administration » Configuration » Content authoring » Text formats and editors, edit a format that uses CKEditor 5 (for example Basic HTML), and drag the Add note button into the toolbar. Notes can be added to content once it has been saved for the first time.
Configuration and permissions
Settings are at Administration » Configuration » Content authoring » Editorial notes (/admin/config/content/editorial-notes): which reactions people can add, who is emailed, whether open notes block publishing and whom they hold back, the longest note, and how long resolved notes are kept. The overview is at Content » Notes (/admin/content/editorial-notes). The status report says whether any text format has the Add note button.
- Use editorial notes (not restricted): see, add, reply to, react to, resolve and reopen notes on content the user can edit, on fields they can see. Users can edit and delete their own messages, and delete a note they started while nobody else has replied.
- View the notes overview (restricted): see the overview of notes on content the user can view, including content they cannot edit. It shows the quoted text and who wrote each note; notes on fields the user cannot see are left out.
- Publish with open notes (restricted): publish content even when it has open notes, while the publishing gate is on.
- Administer editorial notes (restricted): change the settings, and see and delete any note or reply, including notes on content and fields the user cannot otherwise see, so orphaned notes can be cleaned up. Only these users can filter or sort the overview by quoted text.
How the publishing gate decides
With Block publishing while notes are open on, open notes hold back every pending version of the content from going live: unpublished content, a forward draft, an older revision being reverted to, a new translation, and a workspace. They never hold back a save of the live revision itself, so live content can always be fixed. In practice:
- On a site with Content Moderation, editing published content directly and keeping it Published is a save of the live revision, and goes live whatever notes are open. Saving the same change as a draft and publishing it later is held back. To have every change reviewed, split core's Publish transition into draft to published and a separate published to published transition, and grant the second only to people who may change live content without review.
- One open note holds back every later draft of that page until it is resolved, and publishing a workspace is all or nothing: one open note on any page it changed stops the whole workspace. Resolve or delete stale notes.
- Who open notes hold back is a setting. With Everyone (the default), every publish waits, including cron and Drush, and someone who cannot see the notes is told how many there are and who started them. With Only people who can see the notes, other people, cron and Drush publish as usual.
- The escape hatches are the Publish with open notes permission, saves marked as syncing (migrations and content deployment tools), and turning the gate off.
Known limitations
- No suggestion mode or track changes.
- Notes work on formatted text fields of the entity the form edits: nodes, taxonomy terms, custom blocks and other content entities with integer IDs. Text inside Paragraphs or inline entity forms cannot take notes.
- Notes live in the edit form, so reviewers need edit access to the content. There is no commenting from the rendered page.
- Cutting and pasting noted text detaches its note, which can then be attached again. Edits made outside the editor (REST, migrations) detach a note when its quoted words no longer appear; matching is exact, not fuzzy.
- Other people's new notes appear when the panel is refreshed, with its Refresh button or when the tab regains focus after a minute. There is no live push or presence.
- Notes belong to the live site: in a workspace other than Live they are not available.
- Duplicating content with a cloning module does not copy its notes, so a copy can be published at once.
- Mention suggestions come from a directory of up to 10,000 accounts holding a notes permission; on larger sites, people beyond that cannot be suggested. For users without Administer editorial notes, the overview checks at most 10,000 matching notes per listing; narrow the filters to reach later ones.
- Scheduler support is built from Scheduler 2.3.1's source and tested at the hook it calls, not with Scheduler installed. Gin is expected to place the panel in its sidebar as Default Admin does, but has not been tested.
- Like other contributed CKEditor 5 plugins, the plugin is built against the CKEditor 5 build core ships (47.6 in Drupal 11.4). A core update that changes that build may need a new release of this module.
Roadmap
Tests with Gin and with Scheduler installed, in place of today's checks from their source. Suggestion mode, Paragraphs and commenting from the rendered page are not planned; ideas for them are welcome in the issue queue.
Similar projects
Checked on drupal.org in November 2026.
- Editorial Review Threads puts comment threads on whole fields of the node edit form, with mentions and a publishing check. Choose it for field-level review of nodes, or to switch threads off per field in the form display. It does not anchor notes to text; this module does, and works on other content entities too.
- Field Review puts threads on whole fields, of any type and including paragraph rows, on the view page as well as the edit form, so reviewers with view access only can comment. Choose it for those cases. It sends no notifications and has no publishing gate, and its latest release (1.0.0-alpha2) declares Drupal 10.3 and 11.
- Moderation Note lets reviewers note text they select on the rendered latest revision of moderated content, and assign notes. Choose it when review happens on the rendered page. Its latest release is 8.x-1.0-beta6, for Drupal 9 to 11.
- CKEditor 5's commercial Comments add real-time collaboration, comments that survive cut and paste, and balloon display beside the text; track changes is a separate paid feature. Choose them if you have a CKEditor license and need those. They write
<comment-start>and<comment-end>into the editor's data, which must be stripped before display; this module writes nothing into the content.
Support and maintenance
Report bugs and ask for features in the issue queue. Each release has notes describing what changed.
This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.
A read-only mirror is on GitHub at DanePete/drupal-editorial-notes. Development, issues and releases stay on drupal.org.
Maintainer
Created and maintained by deadnorth (Dead North).
Project information
- Project categories: Administration tools, Content editing experience
- Created by deadnorth on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
