2015-05-27 16:15:00 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWSyntaxHighlightInspectorTool class.
|
|
|
|
*
|
2024-02-29 15:13:03 +00:00
|
|
|
* @copyright VisualEditor Team and others
|
2015-05-27 16:15:00 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki UserInterface syntax highlight tool.
|
|
|
|
*
|
|
|
|
* @class
|
2015-12-09 00:11:16 +00:00
|
|
|
* @extends ve.ui.FragmentInspectorTool
|
2015-05-27 16:15:00 +00:00
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
2015-10-19 22:27:16 +00:00
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool = function VeUiMWSyntaxHighlightInspectorTool() {
|
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.super.apply( this, arguments );
|
2015-05-27 16:15:00 +00:00
|
|
|
};
|
2015-12-09 00:11:16 +00:00
|
|
|
OO.inheritClass( ve.ui.MWSyntaxHighlightInspectorTool, ve.ui.FragmentInspectorTool );
|
2015-10-19 22:27:16 +00:00
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.name = 'syntaxhighlightInspector';
|
2015-05-27 16:15:00 +00:00
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.group = 'object';
|
2018-03-20 17:19:10 +00:00
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.icon = 'markup';
|
2015-05-27 16:15:00 +00:00
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.title = OO.ui.deferMsg(
|
|
|
|
'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title' );
|
2015-10-19 22:27:16 +00:00
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.modelClasses = [ ve.dm.MWInlineSyntaxHighlightNode ];
|
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.commandName = 'syntaxhighlightInspector';
|
|
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.autoAddToCatchall = false;
|
2015-05-27 16:15:00 +00:00
|
|
|
ve.ui.toolFactory.register( ve.ui.MWSyntaxHighlightInspectorTool );
|
|
|
|
|
|
|
|
ve.ui.commandRegistry.register(
|
|
|
|
new ve.ui.Command(
|
2015-10-19 22:27:16 +00:00
|
|
|
'syntaxhighlightInspector', 'window', 'open',
|
|
|
|
{ args: [ 'syntaxhighlightInspector' ], supportedSelections: [ 'linear' ] }
|
2015-05-27 16:15:00 +00:00
|
|
|
)
|
|
|
|
);
|