mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +00:00
3ce49146fe
New changes: 7b68782 Update OOjs UI to v0.1.0-pre (3b434d5388) ecb194d Remove border-radius prefixes 993220a Fix invalid use of border shorthand syntax 580473e build: Clean up repo split left overs in Gruntfile Incidental change: * The OOjs UI-provided 'autoAdd' configuration option for tools has been replaced with 'autoAddToCatchall' and 'autoAddToGroup'. Change-Id: Ie7646ae867e5c6ca616c3f9045c79b886e78475c
52 lines
1.9 KiB
JavaScript
52 lines
1.9 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.MWMediaEditDialogTool = function VeUiMWMediaEditDialogTool( toolGroup, config ) {
|
|
ve.ui.DialogTool.call( this, toolGroup, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWMediaEditDialogTool, ve.ui.DialogTool );
|
|
ve.ui.MWMediaEditDialogTool.static.name = 'mediaEdit';
|
|
ve.ui.MWMediaEditDialogTool.static.group = 'object';
|
|
ve.ui.MWMediaEditDialogTool.static.icon = 'picture';
|
|
ve.ui.MWMediaEditDialogTool.static.title =
|
|
OO.ui.deferMsg( 'visualeditor-dialogbutton-media-tooltip' );
|
|
ve.ui.MWMediaEditDialogTool.static.dialog = 'mediaEdit';
|
|
ve.ui.MWMediaEditDialogTool.static.modelClasses = [ ve.dm.MWBlockImageNode ];
|
|
ve.ui.MWMediaEditDialogTool.static.autoAddToCatchall = false;
|
|
ve.ui.MWMediaEditDialogTool.static.autoAddToGroup = false;
|
|
ve.ui.toolFactory.register( ve.ui.MWMediaEditDialogTool );
|
|
|
|
/**
|
|
* MediaWiki UserInterface media insert tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.DialogTool
|
|
* @constructor
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWMediaInsertDialogTool = function VeUiMWMediaInsertDialogTool( toolGroup, config ) {
|
|
ve.ui.DialogTool.call( this, toolGroup, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWMediaInsertDialogTool, ve.ui.DialogTool );
|
|
ve.ui.MWMediaInsertDialogTool.static.name = 'mediaInsert';
|
|
ve.ui.MWMediaInsertDialogTool.static.group = 'object';
|
|
ve.ui.MWMediaInsertDialogTool.static.icon = 'picture';
|
|
ve.ui.MWMediaInsertDialogTool.static.title =
|
|
OO.ui.deferMsg( 'visualeditor-dialogbutton-media-tooltip' );
|
|
ve.ui.MWMediaInsertDialogTool.static.dialog = 'mediaInsert';
|
|
ve.ui.toolFactory.register( ve.ui.MWMediaInsertDialogTool );
|