Skip to content

EmbeddableMarkdownEditorComponentConstructorParams.onEnter?

EmbeddableMarkdownEditorComponentConstructorParams › onEnter?

Type: (params: EmbeddableMarkdownEditorComponentEnterParams) => boolean

Called on Enter, Shift+Enter, Mod+Enter and Mod+Shift+Enter.

When given, Mod+Enter no longer runs the Obsidian hotkey bound to it (by default, opening the link under the cursor in a new tab) while the editor has the focus, so a form can use it to submit.