2015-12-06 22:35:25 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWMathInspector class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki math inspector.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.MWLiveExtensionInspector
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWMathInspector = function VeUiMWMathInspector( config ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ui.MWMathInspector.super.call( this, config );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2017-01-11 21:50:35 +00:00
|
|
|
OO.inheritClass( ve.ui.MWMathInspector, ve.ui.MWLatexInspector );
|
2015-12-06 22:35:25 +00:00
|
|
|
|
|
|
|
/* Static properties */
|
|
|
|
|
|
|
|
ve.ui.MWMathInspector.static.name = 'mathInspector';
|
|
|
|
|
2017-01-11 21:50:35 +00:00
|
|
|
ve.ui.MWMathInspector.static.title = OO.ui.deferMsg( 'math-visualeditor-mwmathdialog-title' );
|
2015-12-06 22:35:25 +00:00
|
|
|
|
|
|
|
ve.ui.MWMathInspector.static.modelClasses = [ ve.dm.MWMathNode ];
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ui.windowFactory.register( ve.ui.MWMathInspector );
|