Demo

Rich text extensions

Documented in Headless Editor.

Rich text extensions

One engine, two editors - a custom kbd mark and a shared review-stamp command added through the extensions API to RichTextEditor and BlockEditor, and the same engine run headless without React.

RichTextEditor with the kbd and stamp extensions

Press Ctrl + S to save. Select a word and press Ctrl+Shift+K (Cmd+Shift+K) to mark it as a key.

HTML value (the kbd elements survive the sanitizer through the extension's html entry)
<p>Press <kbd>Ctrl</kbd> + <kbd>S</kbd> to save. Select a word and press Ctrl+Shift+K (Cmd+Shift+K) to mark it as a key.</p>
BlockEditor with the stamp extension

The same stamp command runs here: Ctrl+Shift+Y (Cmd+Shift+Y), or select text and use the toolbar.

The engine without React