Paragraph
A plain paragraph textblock. Represented in the DOM as a <p> element.
Commands
Section titled “Commands”setParagraph
Section titled “setParagraph”editor const 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];
... 56 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`. ()Keyboard Shortcuts
Section titled “Keyboard Shortcuts”| Non-Apple | Apple | Description |
|---|---|---|
Ctrl-Alt-0 | Command-Option-0 | Set the current textblock to a paragraph |