2012-10-24 21:49:08 +00:00
|
|
|
/**
|
|
|
|
* 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
|
2012-10-27 00:03:54 +00:00
|
|
|
ve.ui.InspectorButtonTool.call( this, toolbar );
|
2012-10-24 21:49:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* 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';
|
|
|
|
|
2012-10-27 00:03:54 +00:00
|
|
|
ve.ui.LinkButtonTool.static.inspector = 'link';
|
2012-10-24 21:49:08 +00:00
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ui.toolFactory.register( 'link', ve.ui.LinkButtonTool );
|