Expand all

ve.ui.MWPreDialog

Extends

Constructor

new ve.ui.MWPreDialog([config]) #

Dialog for editing MediaWiki preformatted text using <pre> tags.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Source:
Dialog for editing MediaWiki preformatted text using <pre> tags.

Properties

allowedEmpty #

Extension is allowed to have empty contents

Properties:

Type Description
boolean
Inherited from:
Mixes in:
Source:
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
Inherited from:
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
Inherited from:
Mixes in:
Source:

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

Inherited from:
Source:

Returns:

Close promise

Type
jQuery.Promise
Show a confirmation prompt before closing the dialog.