mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 03:34:10 +00:00
801888d34b
Note there is not even a LICENSE.txt in this code base. Change-Id: I3dccd4187f4a20e3f040c812c5811298794d469a
38 lines
818 B
JavaScript
38 lines
818 B
JavaScript
/*!
|
|
* VisualEditor ContentEditable MWChemNode class.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license MIT
|
|
*/
|
|
|
|
/**
|
|
* ContentEditable MediaWiki chem node.
|
|
*
|
|
* @class
|
|
* @extends ve.ce.MWInlineExtensionNode
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWChemNode} model Model to observe
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ce.MWChemNode = function VeCeMWChemNode() {
|
|
// Parent constructor
|
|
ve.ce.MWChemNode.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ce.MWChemNode, ve.ce.MWLatexNode );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.ce.MWChemNode.static.name = 'mwChem';
|
|
|
|
ve.ce.MWChemNode.static.primaryCommandName = 'chemDialog';
|
|
|
|
ve.ce.MWChemNode.static.iconWhenInvisible = 'chem';
|
|
|
|
/* Registration */
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWChemNode );
|