Extends
Properties
allowedEmpty
#
Extension is allowed to have empty contents
Properties:
| Type | Description |
|---|---|
| boolean |
Extension is allowed to have empty contents
dir
#
Inspector's directionality, 'ltr' or 'rtl'
Leave as null to use the directionality of the current fragment.
Properties:
| Type | Description |
|---|---|
string
|
null
|
- Mixes in:
- Source:
Inspector's directionality, 'ltr' or 'rtl'
Leave as null to use the directionality of the current fragment.
selfCloseEmptyBody
#
Tell Parsoid to self-close tags when the body is empty
i.e. <foo></foo> -> <foo/>
Properties:
| Type | Description |
|---|---|
| boolean |
Tell Parsoid to self-close tags when the body is empty
i.e.
Methods
confirmAbandon([prompt]) → {jQuery.Promise}
#
Show a confirmation prompt before closing the dialog.
Displays a default prompt of mw-widgets-abandonedit.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
prompt |
jQuery | string | function |
optional |
Prompt, defaults to visualeditor-dialog-extension-abandonedit |
Returns:
Close promise
- Type
- jQuery.Promise
Show a confirmation prompt before closing the dialog.