Skip to content
GitHub

Paragraph

A plain paragraph textblock. Represented in the DOM as a <p> element.

editorconst editor: Editor<BasicExtension>.commands
Editor<BasicExtension>.commands: ToCommandAction<{
    setParagraph: [];
    setHeading: [attrs?: HeadingAttrs | undefined];
    insertHeading: [attrs?: HeadingAttrs | undefined];
    ... 58 more ...;
    redo: [];
}>
All {@link CommandAction } s defined by the editor.
.setParagraph
setParagraph: CommandAction
() => boolean
Execute the current command. Return `true` if the command was successfully executed, otherwise `false`.
()
Non-AppleAppleDescription
Ctrl-Alt-0Command-Option-0Set the current textblock to a paragraph