Extends
Constructor
new ve.ce.MWGalleryNode(model, [config])
#
Hierarchy
ContentEditable MediaWiki gallery node.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
model |
ve.dm.MWGalleryNode | Model to observe |
|
config |
Object |
optional |
Configuration options |
- Mixes in:
- Source:
ContentEditable MediaWiki gallery node.
Methods
getFocusableElement() → {jQuery}
#
Get the focusable element
As seen in ve.ce.GeneratedContentNode. TODO: Consider making this a core ve.ce.FocsableNode feature.
Returns:
Focusable element
- Type
- jQuery
Get the focusable element
As seen in ve.ce.GeneratedContentNode.
onAttributeChange(key, from, to)
#
Handle attribute changes to keep the live HTML element updated.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Attribute name |
from |
any | Old value |
to |
any | New value |
Handle attribute changes to keep the live HTML element updated.
onUpdate()
#
Handle model update events.
Handle model update events.