/*! * VisualEditor ContentEditable MWBlockImageNode class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * ContentEditable MediaWiki image node. * * @class * @extends ve.ce.BranchNode * @mixins ve.ce.MWImageNode * * @constructor * @param {ve.dm.MWBlockImageNode} model Model to observe * @param {Object} [config] Configuration options */ ve.ce.MWBlockImageNode = function VeCeMWBlockImageNode( model, config ) { // Parent constructor ve.ce.BranchNode.call( this, model, config ); this.$element.addClass( 've-ce-mwBlockImageNode ' ); // Properties this.type = this.model.getAttribute( 'type' ); this.alignment = this.model.getAttribute( 'align' ); this.size = { 'width': this.model.getAttribute( 'width' ), 'height': this.model.getAttribute( 'height' ) }; this.typeToRdfa = this.getTypeToRdfa(); // DOM Hierarchy for BlockImageNode: //