Expand all

ve.ce.MWGalleryNode

Extends

Constructor

new ve.ce.MWGalleryNode(model, [config]) #

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.

Source:

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

Source:
Handle attribute changes to keep the live HTML element updated.

onUpdate() #

Handle model update events.

Source:
Handle model update events.