Extends
Constructor
new ve.ce.MWImageNode($focusable, $image, [config])abstract
#
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 |
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 |
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 |
Handle a successful response from the parser for the image src.
render()
#
updateMediaType()
#
Update rendering when media type changes
Update rendering when media type changes