mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-12-04 02:39:22 +00:00
359c060eb7
Per new naming convention. Change-Id: I0db6f70c2d7671eb9c25a6ff7eecf46eafb696d2
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
/*!
|
|
* VisualEditor UserInterface MWSyntaxHighlightInspectorTool class.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/*global ve, OO */
|
|
|
|
/**
|
|
* MediaWiki UserInterface syntax highlight tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.InspectorTool
|
|
* @constructor
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWSyntaxHighlightInspectorTool = function VeUiMWSyntaxHighlightInspectorTool( toolGroup, config ) {
|
|
ve.ui.InspectorTool.call( this, toolGroup, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWSyntaxHighlightInspectorTool, ve.ui.InspectorTool );
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.name = 'syntaxhighlight';
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.group = 'object';
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.icon = 'alienextension';
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.title = OO.ui.deferMsg(
|
|
'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title' );
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.modelClasses = [ ve.dm.MWBlockSyntaxHighlightNode, ve.dm.MWInlineSyntaxHighlightNode ];
|
|
ve.ui.MWSyntaxHighlightInspectorTool.static.commandName = 'syntaxhighlight';
|
|
ve.ui.toolFactory.register( ve.ui.MWSyntaxHighlightInspectorTool );
|
|
|
|
ve.ui.commandRegistry.register(
|
|
new ve.ui.Command(
|
|
'syntaxhighlight', 'window', 'open',
|
|
{ args: [ 'syntaxhighlight' ], supportedSelections: [ 'linear' ] }
|
|
)
|
|
);
|