mediawiki-extensions-Visual.../modules/ve-mw/ce/nodes/ve.ce.MWHieroNode.js
James D. Forrester 0ffd654bed Bump copyright like it's 2014
Change-Id: Ic469ebda2c061dc7da0b4c1625f43a7be55da4fa
2014-01-05 20:06:50 +08:00

39 lines
880 B
JavaScript

/*!
* VisualEditor ContentEditable MWHieroNode class.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* ContentEditable MediaWiki hieroglyphics node.
*
* @class
* @extends ve.ce.MWExtensionNode
*
* @constructor
* @param {ve.dm.MWHieroNode} model Model to observe
* @param {Object} [config] Configuration options
*/
ve.ce.MWHieroNode = function VeCeMWHieroNode( model, config ) {
// Parent constructor
ve.ce.MWExtensionNode.call( this, model, config );
// DOM changes
this.$element.addClass( 've-ce-mwHieroNode' );
};
/* Inheritance */
OO.inheritClass( ve.ce.MWHieroNode, ve.ce.MWExtensionNode );
/* Static Properties */
ve.ce.MWHieroNode.static.name = 'mwHiero';
ve.ce.MWHieroNode.static.tagName = 'div';
/* Registration */
ve.ce.nodeFactory.register( ve.ce.MWHieroNode );