mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
d0e62e1ab3
Now that the toolbar hides extra features by default, we don't need to use autoAddToGroup and autoAddToCatchall over-rides. Change-Id: I493f7d46a3f77e7c62af05f8e05ae4dde7147e4b
29 lines
1 KiB
JavaScript
29 lines
1 KiB
JavaScript
/*!
|
|
* VisualEditor MediaWiki UserInterface gallery tool class.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* MediaWiki UserInterface gallery tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.InspectorTool
|
|
* @constructor
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWGalleryInspectorTool = function VeUiMWGalleryInspectorTool( toolGroup, config ) {
|
|
ve.ui.InspectorTool.call( this, toolGroup, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWGalleryInspectorTool, ve.ui.InspectorTool );
|
|
ve.ui.MWGalleryInspectorTool.static.name = 'gallery';
|
|
ve.ui.MWGalleryInspectorTool.static.group = 'object';
|
|
ve.ui.MWGalleryInspectorTool.static.icon = 'gallery';
|
|
ve.ui.MWGalleryInspectorTool.static.title =
|
|
OO.ui.deferMsg( 'visualeditor-mwgalleryinspector-title' );
|
|
ve.ui.MWGalleryInspectorTool.static.modelClasses = [ ve.dm.MWGalleryNode ];
|
|
ve.ui.MWGalleryInspectorTool.static.commandName = 'gallery';
|
|
ve.ui.toolFactory.register( ve.ui.MWGalleryInspectorTool );
|