2017-01-11 21:50:35 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel 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
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel MediaWiki chem node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.dm.MWLatexNode
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} [element]
|
|
|
|
*/
|
|
|
|
ve.dm.MWChemNode = function VeDmMWChemNode() {
|
|
|
|
// Parent constructor
|
|
|
|
ve.dm.MWChemNode.super.apply( this, arguments );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.dm.MWChemNode, ve.dm.MWLatexNode );
|
|
|
|
|
|
|
|
/* Static members */
|
|
|
|
|
|
|
|
ve.dm.MWChemNode.static.name = 'mwChem';
|
|
|
|
|
|
|
|
ve.dm.MWChemNode.static.extensionName = 'chem';
|
|
|
|
|
|
|
|
ve.dm.MWChemNode.static.getMatchRdfaTypes = function () {
|
|
|
|
return [
|
|
|
|
'mw:Extension/chem',
|
|
|
|
'mw:Extension/ce' // Deprecated, kept for backwards compatibility
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWChemNode );
|