mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
f49d80d27a
Graphics (*.ai, *.png, *.svg) * Took a pass on all images making them sharper and clearer * Renamed bold and italic to bold-b and bold-a * Added bold-f, italic-k, bold-a and italic-a * Reorganized illustrator file ve.ui.Icons-raster.css, ve.ui.Icons-vector.css * Added classes for new icons * Appended bullet, number, indent and outdent class names with "list" ve.ui.*ButtonTool.js * Added definitions for static icon property * For bold and italic, added i18n style definitions ve.ui.ButtonTool.js * Switched from re-using the name property (which is intended to be the symbolic name of the tool used when registering with the tool factory) to using an static icon property for defining the icon Change-Id: I43e7c35835a1e6dfb06f2a70226fac0d395008e8
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
/*!
|
|
* VisualEditor UserInterface OutdentButtonTool class.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* UserInterface outdent button tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.IndentationButtonTool
|
|
* @constructor
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
*/
|
|
ve.ui.OutdentButtonTool = function VeUiOutdentButtonTool( toolbar ) {
|
|
// Parent constructor
|
|
ve.ui.IndentationButtonTool.call( this, toolbar );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.inheritClass( ve.ui.OutdentButtonTool, ve.ui.IndentationButtonTool );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.ui.OutdentButtonTool.static.name = 'outdent';
|
|
|
|
ve.ui.OutdentButtonTool.static.icon = 'outdent-list';
|
|
|
|
ve.ui.OutdentButtonTool.static.titleMessage = 'visualeditor-indentationbutton-outdent-tooltip';
|
|
|
|
ve.ui.OutdentButtonTool.static.method = 'decrease';
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.toolFactory.register( 'outdent', ve.ui.OutdentButtonTool );
|
|
|
|
// TODO: Consistency between outdent and unindent.
|
|
ve.commandRegistry.register( 'outdent', 'indentation', 'decrease' );
|
|
|
|
ve.triggerRegistry.register( 'outdent', new ve.Trigger( 'shift+tab' ) );
|