Expand all

abstract ve.ce.MWResizableNode

Extends

Constructor

new ve.ce.MWResizableNode([$resizable], [config])abstract #

ContentEditable MediaWiki resizable node.

Parameters:

Name Type Attributes Default Description
$resizable jQuery optional
this.$element

Resizable DOM element

config Object optional

Configuration options

Source:
ContentEditable MediaWiki resizable node.

Methods

getAttributeChanges(width, height) → {Object} #

Generate an object of attributes changes from the new width and height.

If either property changes, clear the defaultSize flag.

Parameters:

Name Type Description
width number

New image width

height number

New image height

Source:

Returns:

Attribute changes

Type
Object
Generate an object of attributes changes from the new width and height.