mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-29 18:04:53 +00:00
b3335f60c4
Corresponds to changes to window system of OOUI and thus VisualEditor Ia74732e Change-Id: I72f410e09eddc82e562b6beb74772636b896dcd7
45 lines
1 KiB
JavaScript
45 lines
1 KiB
JavaScript
/*!
|
|
* VisualEditor UserInterface MWMathInspector class.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/*global ve, OO */
|
|
|
|
/**
|
|
* MediaWiki math inspector.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.MWLiveExtensionInspector
|
|
*
|
|
* @constructor
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWMathInspector = function VeUiMWMathInspector( config ) {
|
|
// Parent constructor
|
|
ve.ui.MWLiveExtensionInspector.call( this, config );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWMathInspector, ve.ui.MWLiveExtensionInspector );
|
|
|
|
/* Static properties */
|
|
|
|
ve.ui.MWMathInspector.static.name = 'math';
|
|
|
|
ve.ui.MWMathInspector.static.icon = 'math';
|
|
|
|
ve.ui.MWMathInspector.static.size = 'large';
|
|
|
|
ve.ui.MWMathInspector.static.title = OO.ui.deferMsg( 'math-visualeditor-mwmathinspector-title' );
|
|
|
|
ve.ui.MWMathInspector.static.nodeModel = ve.dm.MWMathNode;
|
|
|
|
ve.ui.MWMathInspector.static.dir = 'ltr';
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.windowFactory.register( ve.ui.MWMathInspector );
|