Debian Codegraph @

extensions/Math/modules/ve-math/ve.ce.MWChemNode.js

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