Expand all

abstract ve.ce.MWImageNode

Extends

Constructor

new ve.ce.MWImageNode($focusable, $image, [config])abstract #

ContentEditable MediaWiki image node.

Parameters:

Name Type Attributes Description
$focusable jQuery

Focusable part of the node

$image jQuery

Image part of the node

config Object optional

Configuration options

Mixes in:
Source:
ContentEditable MediaWiki image node.

Methods

generateContents() #

onAttributeChange(key, from, to) #

Update the rendering of the 'align', src', 'width' and 'height' attributes when they change in the model.

Parameters:

Name Type Description
key string

Attribute key

from string

Old value

to string

New value

Source:

Update the rendering of the 'align', src', 'width' and 'height' attributes when they change in the model.

onGeneratedContentNodeUpdate() #

onParseError(deferred, response) #

Handle an unsuccessful response from the parser for the image src.

Parameters:

Name Type Description
deferred jQuery.Deferred

The promise object created by generateContents

response Object

Response data

Source:
Handle an unsuccessful response from the parser for the image src.

onParseSuccess(deferred, response) #

Handle a successful response from the parser for the image src.

Parameters:

Name Type Description
deferred jQuery.Deferred

The Deferred object created by generateContents

response Object

Response data

Source:
Handle a successful response from the parser for the image src.

updateMediaType() #

Update rendering when media type changes

Source:
Update rendering when media type changes

getDescription()static #