Extends
Constructor
new ve.ui.BlockquoteAction(surface, [source])
#
Hierarchy
Blockquote action.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
surface |
ve.ui.Surface | Surface to act on |
|
source |
string |
optional |
Blockquote action.
Methods
isWrapped() → {boolean}
#
Check if the current selection is wrapped in a blockquote.
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.
Returns:
Action was executed
- Type
- boolean
Toggle a blockquote around content.
unwrap() → {boolean}
#
Remove blockquote around content (if present).
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).
Returns:
Action was executed
- Type
- boolean
Add a blockquote around content (only if it has no blockquote already).