V

exitAtom

tested

Enter with an atom selected: start a paragraph right below it. An atom (image, divider, an app's card) has no text position inside it, so without this the only way OUT of a selected atom — and the only way to write between two atoms, or after one that ends the document — was to abandon the keyboard. Mirrors createParagraphNear in the ProseMirror tradition.

Signature

ts
const exitAtom: Command