mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-06 02:17:49 +08:00
1.1 KiB
1.1 KiB
Blockquote
The Blockquote extension enables you to use the <blockquote>
HTML tag in the editor. This is great – you might have guessed – to use quotes in the editor.
Type >
at the beginning of a new line and it will magically transform to a blockquote.
Installation
# with npm
npm install @tiptap/extension-blockquote
# with Yarn
yarn add @tiptap/extension-blockquote
Settings
Option | Type | Default | Description |
---|---|---|---|
class | string | – | Add a custom class to the rendered HTML tag. |
Commands
Command | Options | Description |
---|---|---|
blockquote | — | Wrap content in a blockquote. |
Keyboard shortcuts
- Windows/Linux:
Control
Shift
9
- macOS:
Cmd
Shift
9
Source code
packages/extension-blockquote/