Expand all

abstract ve.ui.MWLiveExtensionInspector

Extends

Constructor

new ve.ui.MWLiveExtensionInspector([config])abstract #

Inspector for editing generic MediaWiki extensions with dynamic rendering.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Source:
Inspector for editing generic MediaWiki extensions with dynamic rendering.

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

formatGeneratedContentsError($element) → {jQuery} #

Format the error.

Default behaviour returns the error with no modification.

Parameters:

Name Type Description
$element jQuery

Element containing the error

Source:

Returns:

$element Element containing the error

Type
jQuery
Format the error.

hideGeneratedContentsError() #

Hide the error and collapse the error container.

Source:
Hide the error and collapse the error container.

showGeneratedContentsError($element) #

Show the error container and set the error label to contain the error.

Parameters:

Name Type Description
$element jQuery

Element containing the error

Source:
Show the error container and set the error label to contain the error.

updatePreview() #

Update the node rendering to reflect the current content in the inspector.

Source:
Update the node rendering to reflect the current content in the inspector.