mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-28 04:36:49 +00:00
f65c3c6ef1
Switch to processes for windows (dialogs/inspectors) This conversion also required the splitting of MWLinkInspector into MWLinkNodeInspector and MWLinkAnnotationInspector. New changes: 88fe25f [BREAKING CHANGE] Update OOjs UI to v0.1.0-pre (dd888aba5c) Change-Id: I662d8985463c9fc881775f70aef87ebeb454a73f
25 lines
887 B
JavaScript
25 lines
887 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MediaWiki LinkInspectorTool classes.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @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
|
|
*/
|
|
ve.ui.MWLinkNodeInspectorTool = function VeUiMWLinkNodeInspectorTool( toolGroup, config ) {
|
|
ve.ui.LinkInspectorTool.call( this, toolGroup, config );
|
|
};
|
|
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 );
|