Install

Works with Drupal: ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 207.29 KB
MD5: eb3f0eb6566cef7dc78d85620eb117fd
SHA-1: a69763b84785c7700a0748c46a2cd377100a9251
SHA-256: 0ee18fdb0896e822674c841da11d188f937c7a748c104227db76a7daa0012a99
Download zip 263.06 KB
MD5: 30e822468291ca0b4b35a50e875cfe67
SHA-1: 5c278a604e7e588d18506218dacda6daf03b85f1
SHA-256: 374b23ea27a9456e6c9151a957ce5ba46a65d6909b0e6417ae33c20ebf4f91c8

Release notes

Security fixes, Canvas 1.13 support, and Write mode's accessibility review, with saving from the keyboard, plain-text paste, lists and dividers as blocks, and an optional target length.

Security

This release fixes two medium-severity issues. Update if you use Write mode or Visual mode.

  • Pasted images could make the server fetch internal addresses (#3636028). When an image pasted into Write mode is saved as a Media item, the server downloads it. The address check could be bypassed (IPv6, redirects, DNS changes between the check and the download), so an editor could make the server request internal hosts. Now every address of the host is checked, the download connects only to the address checked, each redirect is checked again, only ports 80 and 443 are allowed, and the size is capped while downloading.
  • Text typed in Visual mode was read as HTML (#3636029). Building a block's summary from text typed on the page parsed it as HTML, so markup in it could run script in the editor's browser. The text is now used as text, and rich text goes through an inert template.

Three lower-severity hardening fixes are in this release too:

  • Write mode validates the fields of blocks shown as cards when they change (#3636030).
  • The Content components block checks access to the entity, not only to its field (#3636031).
  • Pasted images are checked as the media field checks uploads (file extensions, resolution), and images too large to open are refused (#3636032).

Upgrading from alpha2

No database updates this time; clear the caches (drush cr) for the new scripts and styles. Nothing changes for existing content types: the new settings below are off, or empty, until a site builder sets them.

The module now allows Canvas 1.13 as well as 1.12 (#3636040). Before updating Canvas, note that Canvas 1.13's own update can stop on some Canvas pages (canvas#3592401); content edited with this module isn't affected.

New

  • Saving and pasting in Write mode (#3636023):
    • Ctrl/Cmd+S saves, with the form's own Save button.
    • Pasting as plain text (the browser's own shortcut: Ctrl+Shift+V, or Option+Shift+Cmd+V on a Mac) makes a paragraph of each line.
    • With Autosave Form on the site, the status line shows when the last draft was saved.
    • A Keys button in the status line opens the keyboard help (also Alt+0).
    • An optional Target length setting shows the word count against it ("620 of 800 words").
  • Lists and dividers as blocks (#3636024): two new rows in a content type's Write mode mapping. A List component keeps a list as rich text or as a line per item, numbered or not; any component can be a Divider, and typing --- makes one. They're suggested on the content type's form and take effect once its mapping is saved.
  • Write mode maps headings to components whose level is text, such as "h2" or "h3" (#3636027).

Accessibility

Write mode's accessibility review (#3636034), checked with VoiceOver:

  • The story is named for its field and mode, with the keys hint, instead of "Rich Text Editor".
  • Cards are named groups; screen readers hear the block type as the caret moves into another kind of block.
  • The caret stays in view above the status line; Esc leaves the toolbars and menus back to the text.
  • "Unsaved changes" is said once, when typing pauses, so it isn't lost under the typing echo.
  • The block menu's key is named for the platform (⌘/ on a Mac).

Fixed

  • The + and drag handle beside a block keep their place whatever the length of the block's type (#3636037).

Tests and CI

New browser and kernel tests for each change above. All tests pass on Drupal 11.5; that test run still reports two deprecations from Canvas itself (canvas#3592403, #3636041). Drupal 12 waits for Canvas.

Known issues

  • With Canvas Override on the same content type, its Canvas tab edits this module's field (#3638895). Use one of them per content type for now.

Coming next

Write mode will open a block's settings in the sidebar's Block panel (#3636022), share one set of block actions and keys with Fields mode (#3636038), and show blocks as they'll look, with a Site theme switch (#3636035). Site builders will choose where the entity's other fields go (#3636039).

Created by: jasonfelix
Created on: 19 Nov 2026 at 23:46 UTC
Last updated: 19 Nov 2026 at 23:47 UTC
Bug fixes
New features

Other releases