mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
31bafa183d
New changes: 2cc219a Update OOjs UI to v0.1.0-pre (571f26d0ab) 3543cb7 Protect against offset=-1 in insertContent() 7a3d456 [BREAKING CHANGE] Move selection restrictions from tools to commands 3d847bb Disable desktop context on table selections 41282dd Missed function rename from RangeFix change dd6c8b8 Support toDomElements returning an empty array 9be6464 Placholder -> placeholder 9bdd0a8 Restore basic styling to toolbar in core target (only) Local changes: Move selection restrictions from tools to commands Change-Id: I88f3d04946bd1d03ed001d747475a8b495a0f64c
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
/*!
|
|
* VisualEditor MediaWiki media dialog tool classes.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* MediaWiki UserInterface media edit tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.DialogTool
|
|
* @constructor
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWMediaDialogTool = function VeUiMWMediaDialogTool( toolGroup, config ) {
|
|
ve.ui.DialogTool.call( this, toolGroup, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWMediaDialogTool, ve.ui.DialogTool );
|
|
ve.ui.MWMediaDialogTool.static.name = 'media';
|
|
ve.ui.MWMediaDialogTool.static.group = 'object';
|
|
ve.ui.MWMediaDialogTool.static.icon = 'picture';
|
|
ve.ui.MWMediaDialogTool.static.title =
|
|
OO.ui.deferMsg( 'visualeditor-dialogbutton-media-tooltip' );
|
|
ve.ui.MWMediaDialogTool.static.modelClasses = [ ve.dm.MWBlockImageNode, ve.dm.MWInlineImageNode ];
|
|
ve.ui.MWMediaDialogTool.static.commandName = 'media';
|
|
ve.ui.MWMediaDialogTool.static.autoAddToCatchall = false;
|
|
ve.ui.MWMediaDialogTool.static.autoAddToGroup = false;
|
|
ve.ui.toolFactory.register( ve.ui.MWMediaDialogTool );
|