mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 14:06:19 +00:00
a4e0e83f24
* Moved to tool specific configuration to static properties (left tool instance specific stuff in the constructors) * Added documentation for tool configurations * Centralized typePattern matching for inspectors Change-Id: Ieacf61b320c10fd37ea69a05e543313fa990b403
36 lines
854 B
JavaScript
36 lines
854 B
JavaScript
/**
|
|
* VisualEditor user interface LinkButtonTool class.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* Creates an ve.ui.LinkButtonTool object.
|
|
*
|
|
* @class
|
|
* @constructor
|
|
* @extends {ve.ui.InspectorButtonTool}
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
*/
|
|
ve.ui.LinkButtonTool = function VeUiLinkButtonTool( toolbar ) {
|
|
// Parent constructor
|
|
ve.ui.InspectorButtonTool.call( this, toolbar );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.inheritClass( ve.ui.LinkButtonTool, ve.ui.InspectorButtonTool );
|
|
|
|
/* Static Members */
|
|
|
|
ve.ui.LinkButtonTool.static.name = 'link';
|
|
|
|
ve.ui.LinkButtonTool.static.titleMessage = 'visualeditor-annotationbutton-link-tooltip';
|
|
|
|
ve.ui.LinkButtonTool.static.inspector = 'link';
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.toolFactory.register( 'link', ve.ui.LinkButtonTool );
|