| 1 | /*! |
| 2 | * VisualEditor ContentEditable MWMathNode class. |
| 3 | * |
| 4 | * @copyright See AUTHORS.txt |
| 5 | * @license MIT |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * ContentEditable MediaWiki math node. |
| 10 | * |
| 11 | * @class |
| 12 | * @extends ve.ce.MWInlineExtensionNode |
| 13 | * |
| 14 | * @constructor |
| 15 | * @param {ve.dm.MWMathNode} model Model to observe |
| 16 | * @param {Object} [config] Configuration options |
| 17 | */ |
| 18 | ve.ce.MWMathNode = function VeCeMWMathNode() { |
| 19 | // Parent constructor |
| 20 | ve.ce.MWMathNode.super.apply( this, arguments ); |
| 21 | }; |
| 22 | |
| 23 | /* Inheritance */ |
| 24 | |
| 25 | OO.inheritClass( ve.ce.MWMathNode, ve.ce.MWLatexNode ); |
| 26 | |
| 27 | /* Static Properties */ |
| 28 | |
| 29 | ve.ce.MWMathNode.static.name = 'mwMath'; |
| 30 | |
| 31 | ve.ce.MWMathNode.static.primaryCommandName = 'mathDialog'; |
| 32 | |
| 33 | ve.ce.MWMathNode.static.iconWhenInvisible = 'mathematics'; |
| 34 | |
| 35 | /* Registration */ |
| 36 | |
| 37 | ve.ce.nodeFactory.register( ve.ce.MWMathNode ); |