2013-11-27 19:16:45 +00:00
|
|
|
/*!
|
2014-02-27 15:17:00 +00:00
|
|
|
* VisualEditor UserInterface MediaWiki LinkInspectorTool classes.
|
2013-11-27 19:16:45 +00:00
|
|
|
*
|
2014-01-05 12:05:05 +00:00
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
2013-11-27 19:16:45 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* UserInterface link tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.LinkInspectorTool
|
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
2014-05-31 04:47:08 +00:00
|
|
|
ve.ui.MWLinkNodeInspectorTool = function VeUiMWLinkNodeInspectorTool( toolGroup, config ) {
|
2013-11-27 19:16:45 +00:00
|
|
|
ve.ui.LinkInspectorTool.call( this, toolGroup, config );
|
|
|
|
};
|
2014-05-31 04:47:08 +00:00
|
|
|
OO.inheritClass( ve.ui.MWLinkNodeInspectorTool, ve.ui.LinkInspectorTool );
|
|
|
|
ve.ui.MWLinkNodeInspectorTool.static.name = 'linkNode';
|
|
|
|
ve.ui.MWLinkNodeInspectorTool.static.modelClasses = [ ve.dm.MWNumberedExternalLinkNode ];
|
|
|
|
ve.ui.MWLinkNodeInspectorTool.static.commandName = 'linkNode';
|
|
|
|
ve.ui.toolFactory.register( ve.ui.MWLinkNodeInspectorTool );
|