Skip to content

Blockquote Plugin

The BlockquotePlugin adds block quote support with a toggle command, keyboard shortcut, and Markdown-style input rule.

Blockquote in the editor

import { BlockquotePlugin } from '@notectl/core/plugins/blockquote';
new BlockquotePlugin()
interface BlockquoteConfig {
/** Custom locale strings. */
readonly locale?: BlockquoteLocale;
}
CommandDescriptionReturns
toggleBlockquoteToggle blockquote on/off for the current blockboolean
setBlockquoteConvert the current block to blockquoteboolean
editor.executeCommand('toggleBlockquote');
ShortcutAction
Ctrl+Shift+> / Cmd+Shift+>Toggle blockquote
PatternResult
> (at the start of a line)Convert to blockquote
KeyAction
Enter (empty blockquote)Convert blockquote to paragraph
Backspace (at position 0)Convert blockquote to paragraph
ArrowDown (at end of text)Move cursor to next block, or insert a paragraph if last block
ArrowUp (at position 0)Move cursor to previous block
TypeHTML TagDescription
blockquote<blockquote>Block-level quote container

The toDOM method creates a <blockquote> element with the required data-block-id attribute. The editor’s default styles render a left border and padding for visual distinction.