mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-12 14:35:28 +00:00
39 lines
1,012 B
JavaScript
39 lines
1,012 B
JavaScript
|
/*!
|
||
|
* VisualEditor UserInterface MWMediaEditButtonTool class.
|
||
|
*
|
||
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||
|
* @license The MIT License (MIT); see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* MediaEdit button tool.
|
||
|
*
|
||
|
* @class
|
||
|
* @extends ve.ui.DialogButtonTool
|
||
|
* @constructor
|
||
|
* @param {ve.ui.Toolbar} toolbar
|
||
|
* @param {Object} [config] Config options
|
||
|
*/
|
||
|
ve.ui.MWMediaEditButtonTool = function VeUiMWMediaEditButtonTool( toolbar, config ) {
|
||
|
// Parent constructor
|
||
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
||
|
};
|
||
|
|
||
|
/* Inheritance */
|
||
|
|
||
|
ve.inheritClass( ve.ui.MWMediaEditButtonTool, ve.ui.DialogButtonTool );
|
||
|
|
||
|
/* Static Properties */
|
||
|
|
||
|
ve.ui.MWMediaEditButtonTool.static.name = 'mwMediaEdit';
|
||
|
|
||
|
ve.ui.MWMediaEditButtonTool.static.icon = 'picture';
|
||
|
|
||
|
ve.ui.MWMediaEditButtonTool.static.titleMessage = 'visualeditor-dialogbutton-media-tooltip';
|
||
|
|
||
|
ve.ui.MWMediaEditButtonTool.static.dialog = 'mwMediaEdit';
|
||
|
|
||
|
/* Registration */
|
||
|
|
||
|
ve.ui.toolFactory.register( 'mwMediaEdit', ve.ui.MWMediaEditButtonTool );
|