Skip to main content

Module slash_menu

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§

SlashCommand
What a row of the slash menu does.
SlashHostCommand
A slash command only the editor’s host can carry out. A host offers the ones it answers with BlockEditor::set_slash_commands.

Type Aliases§

SlashMenu