2014-01-06 09:07:24 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWMathNode class.
|
|
|
|
*
|
2015-01-16 12:06:38 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2014-01-06 09:07:24 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ContentEditable MediaWiki math node.
|
|
|
|
*
|
|
|
|
* @class
|
2014-05-20 14:52:46 +00:00
|
|
|
* @extends ve.ce.MWInlineExtensionNode
|
2014-01-06 09:07:24 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.MWMathNode} model Model to observe
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
2014-11-12 18:46:46 +00:00
|
|
|
ve.ce.MWMathNode = function VeCeMWMathNode() {
|
2014-01-06 09:07:24 +00:00
|
|
|
// Parent constructor
|
2014-11-12 18:46:46 +00:00
|
|
|
ve.ce.MWMathNode.super.apply( this, arguments );
|
2014-01-06 09:07:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2017-01-11 21:50:35 +00:00
|
|
|
OO.inheritClass( ve.ce.MWMathNode, ve.ce.MWLatexNode );
|
2014-01-06 09:07:24 +00:00
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ce.MWMathNode.static.name = 'mwMath';
|
|
|
|
|
2016-11-30 12:39:59 +00:00
|
|
|
ve.ce.MWMathNode.static.primaryCommandName = 'mathDialog';
|
2014-03-20 02:31:41 +00:00
|
|
|
|
2017-06-07 21:41:16 +00:00
|
|
|
ve.ce.MWMathNode.static.iconWhenInvisible = 'math';
|
|
|
|
|
2014-01-06 09:07:24 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWMathNode );
|