Expand all

ve.ui.BlockquoteAction

Extends

Constructor

new ve.ui.BlockquoteAction(surface, [source]) #

Blockquote action.

Parameters:

Name Type Attributes Description
surface ve.ui.Surface

Surface to act on

source string optional
Source:
Blockquote action.

Methods

isWrapped() → {boolean} #

Check if the current selection is wrapped in a blockquote.

Source:

Returns:

Current selection is wrapped in a blockquote

Type
boolean
Check if the current selection is wrapped in a blockquote.

toggle() → {boolean} #

Toggle a blockquote around content.

Source:

Returns:

Action was executed

Type
boolean
Toggle a blockquote around content.

unwrap() → {boolean} #

Remove blockquote around content (if present).

Source:

Returns:

Action was executed

Type
boolean
Remove blockquote around content (if present).

wrap() → {boolean} #

Add a blockquote around content (only if it has no blockquote already).

Source:

Returns:

Action was executed

Type
boolean
Add a blockquote around content (only if it has no blockquote already).