Module slash_menu
Expand description
SlashMenu — the popover / opens inside a
BlockEditor block: a
FilterMenu over every block kind the editor makes, plus the commands
its host answers (a picture, a link to another page, a page inside this
one). Filtering matches keywords as well as labels, so /h2 finds
“Heading 2”; each row shows the Markdown that makes the same block.
Not the ActionPalette: that is the search
card a shortcut opens over the whole app; this is a compact popover
anchored at the caret.
Enums§
- Slash
Command - What a row of the slash menu does.
- Slash
Host Command - A slash command only the editor’s host can carry out. A host offers the
ones it answers with
BlockEditor::set_slash_commands.