mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-06 06:29:11 +00:00
40 lines
1 KiB
JavaScript
40 lines
1 KiB
JavaScript
|
/*!
|
||
|
* VisualEditor UserInterface MWMediaButtonTool class.
|
||
|
*
|
||
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||
|
* @license The MIT License (MIT); see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* MediaWiki media insert button tool.
|
||
|
*
|
||
|
* @class
|
||
|
* @extends ve.ui.DialogButtonTool
|
||
|
*
|
||
|
* @constructor
|
||
|
* @param {ve.ui.Toolbar} toolbar
|
||
|
* @param {Object} [config] Config options
|
||
|
*/
|
||
|
ve.ui.MWMediaInsertButtonTool = function VeUiMWMediaButtonTool( toolbar, config ) {
|
||
|
// Parent constructor
|
||
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
||
|
};
|
||
|
|
||
|
/* Inheritance */
|
||
|
|
||
|
ve.inheritClass( ve.ui.MWMediaInsertButtonTool, ve.ui.DialogButtonTool );
|
||
|
|
||
|
/* Static Properties */
|
||
|
|
||
|
ve.ui.MWMediaInsertButtonTool.static.name = 'mwMediaInsert';
|
||
|
|
||
|
ve.ui.MWMediaInsertButtonTool.static.icon = 'picture';
|
||
|
|
||
|
ve.ui.MWMediaInsertButtonTool.static.titleMessage = 'visualeditor-dialogbutton-media-tooltip';
|
||
|
|
||
|
ve.ui.MWMediaInsertButtonTool.static.dialog = 'mwMediaInsert';
|
||
|
|
||
|
/* Registration */
|
||
|
|
||
|
ve.ui.toolFactory.register( 'mwMediaInsert', ve.ui.MWMediaInsertButtonTool );
|