mediawiki-extensions-Math/modules/ve-math/ve.ce.MWMathNode.js
Thiemo Kreuz 801888d34b Use short "@license MIT" according to SPDX
Note there is not even a LICENSE.txt in this code base.

Change-Id: I3dccd4187f4a20e3f040c812c5811298794d469a
2018-04-13 16:04:06 +02:00

38 lines
818 B
JavaScript

/*!
* VisualEditor ContentEditable MWMathNode class.
*
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
* @license MIT
*/
/**
* ContentEditable MediaWiki math node.
*
* @class
* @extends ve.ce.MWInlineExtensionNode
*
* @constructor
* @param {ve.dm.MWMathNode} model Model to observe
* @param {Object} [config] Configuration options
*/
ve.ce.MWMathNode = function VeCeMWMathNode() {
// Parent constructor
ve.ce.MWMathNode.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.ce.MWMathNode, ve.ce.MWLatexNode );
/* Static Properties */
ve.ce.MWMathNode.static.name = 'mwMath';
ve.ce.MWMathNode.static.primaryCommandName = 'mathDialog';
ve.ce.MWMathNode.static.iconWhenInvisible = 'math';
/* Registration */
ve.ce.nodeFactory.register( ve.ce.MWMathNode );