Blockquote
The blockquote
node represents a block of quoted text. It can be used to create a block of text that is quoted from another source.
Usage
ts
import { defineBlockquote } from 'prosekit/extensions/blockquote'
const extension = defineBlockquote()
Commands
setBlockquote
Set the selected node to a setBlockquote
node.
ts
editor.commands.setBlockquote()
insertBlockquote
Insert a new blockquote
node.
ts
editor.commands.insertBlockquote()
toggleBlockquote
Toggle the selected node between a blockquote
node and a default node (e.g. a paragraph
node).
ts
editor.commands.toggleBlockquote()
Keyboard Shortcuts
Non-Apple | Apple | Description |
---|---|---|
Ctrl-Shift-B | Command-Shift-B | Toggle blockquote |
Keyboard Interaction
Type >
and a space at the start of a line. This will create a blockquote
node.