Skip to content
GitHubDiscord

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];
    toggleHeading: [attrs?: HeadingAttrs | undefined];
    dedentList: [options?: DedentListOptions];
    indentList: [options?: IndentListOptions];
    moveList: [direction: "up" | "down"];
    splitList: [];
    toggleCollapsed: [options?: ToggleCollapsedOptions];
    ... 55 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