Rich text / foldkit-richtext-dom/editor-bundle

menuTextOf

function · packages/richtext-dom/src/editor-bundle.ts:322

function menuTextOf(model: EditorView): string

The text a slash menu reads: the text before the caret, or nothing once Escape has closed the menu of the query the caret is in. Enter resolves against it, and an application's menu view reads it too, so the two agree on whether a menu is open.