mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 05:56:11 +00:00
0ffd654bed
Change-Id: Ic469ebda2c061dc7da0b4c1625f43a7be55da4fa
39 lines
880 B
JavaScript
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 );
|