mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-02 01:46:47 +00:00
07821f5f55
Change-Id: Id71c7f862e43125599ecfc6eeb27719e1891489d
40 lines
1 KiB
JavaScript
40 lines
1 KiB
JavaScript
/*!
|
|
* VisualEditor UserInterface MWMediaInsertButtonTool class.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* UserInterface 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 VeUiMWMediaInsertButtonTool( 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 );
|