2017-01-11 21:50:35 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWChemNode class.
|
|
|
|
*
|
2024-03-19 18:37:26 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2018-04-13 14:04:06 +00:00
|
|
|
* @license MIT
|
2017-01-11 21:50:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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';
|
|
|
|
|
2019-09-11 20:36:37 +00:00
|
|
|
ve.ce.MWChemNode.static.iconWhenInvisible = 'labFlask';
|
2017-06-07 21:41:16 +00:00
|
|
|
|
2017-01-11 21:50:35 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWChemNode );
|