mirror of
https://github.com/docmost/docmost.git
synced 2026-06-10 01:52:43 +08:00
361afc2426
Add a ProseMirror plugin with handleTextInput and handlePaste that return true (handled, no-op) when the current selection is a NodeSelection of the base embed. Pairs with the existing Backspace/ Delete keyboard guard — between them the two accidental-deletion paths (focus + delete key, focus + type a character) are blocked. Other deletion routes still work: range selections covering the node, programmatic deletes, and so on. Pressing an arrow key deselects the node so the user can type elsewhere.