Skip to main content

extension-blockquote

package @remirror/extension-blockquote

class BlockquoteExtension​

Add the blockquote block to the editor.

Signature:

export declare class BlockquoteExtension extends NodeExtension 

Extends: NodeExtension

(Some inherited members may not be shown because they are not represented in the documentation.)

property name​

Signature:

get name(): "blockquote";

method createInputRules​

Signature:

createInputRules(): InputRule[];

Returns:

InputRule[]

method createNodeSpec​

Signature:

createNodeSpec(extra: ApplySchemaAttributes, override: NodeSpecOverride): NodeExtensionSpec;

Parameters:

ParameterTypeDescription
extraApplySchemaAttributes
overrideNodeSpecOverride

Returns:

NodeExtensionSpec

method createPasteRules​

Signature:

createPasteRules(): PasteRule;

Returns:

PasteRule

method createTags​

Signature:

createTags(): ("formattingNode" | "block")[];

Returns:

("formattingNode" | "block")[]

method shortcut​

Signature:

shortcut(props: KeyBindingProps): boolean;

Parameters:

ParameterTypeDescription
propsKeyBindingProps

Returns:

boolean

method toggleBlockquote​

Toggle the blockquote for the current block.

If none exists one will be created or the existing blockquote content will be lifted out of the blockquote node.

commands.toggleBlockquote();

Signature:

toggleBlockquote(): CommandFunction;

Returns:

CommandFunction