mediawiki-extensions-Math/modules/ve-math/ve.ce.MWMathNode.js
Ed Sanders 742afcdb8b Specify iconWhenInvisible for math/chem nodes
Bug: T166526
Change-Id: I42703d15fa7e491d85d01899c706dbca4e5816b6
2017-06-07 22:41:16 +01:00

38 lines
853 B
JavaScript

/*!
* VisualEditor ContentEditable MWMathNode class.
*
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* 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 );