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 |
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.
getActionProcess()
#
- Inherited from:
- Source:
getReadyProcess()
#
- Inherited from:
- Source:
getSetupProcess()
#
getTeardownProcess()
#
hideGeneratedContentsError()
#
Hide the error and collapse the error container.
Hide the error and collapse the error container.
initialize()
#
insertOrUpdateNode()
#
onChange()
#
removeNode()
#
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 |
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.
Update the node rendering to reflect the current content in the inspector.