mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-14 18:15:57 +00:00
Use OOUI 'markup' icon instead of VE's deprecated 'alienextension'
Change-Id: Iad1882c20c17792c1339cf9922b9c4c43bf6122b
This commit is contained in:
parent
df6eec698e
commit
af1a91ade9
|
@ -515,7 +515,7 @@ class SyntaxHighlight {
|
|||
* @param ResourceLoader &$resourceLoader
|
||||
*/
|
||||
public static function onResourceLoaderRegisterModules( &$resourceLoader ) {
|
||||
if ( ! ExtensionRegistry::getInstance()->isLoaded( 'VisualEditor' ) ) {
|
||||
if ( !ExtensionRegistry::getInstance()->isLoaded( 'VisualEditor' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -539,6 +539,7 @@ class SyntaxHighlight {
|
|||
],
|
||||
'dependencies' => [
|
||||
'ext.visualEditor.mwcore',
|
||||
'oojs-ui.styles.icons-editing-advanced'
|
||||
],
|
||||
'messages' => [
|
||||
'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-code',
|
||||
|
|
|
@ -20,7 +20,7 @@ ve.ui.MWSyntaxHighlightDialogTool = function VeUiMWSyntaxHighlightDialogTool() {
|
|||
OO.inheritClass( ve.ui.MWSyntaxHighlightDialogTool, ve.ui.FragmentWindowTool );
|
||||
ve.ui.MWSyntaxHighlightDialogTool.static.name = 'syntaxhighlightDialog';
|
||||
ve.ui.MWSyntaxHighlightDialogTool.static.group = 'object';
|
||||
ve.ui.MWSyntaxHighlightDialogTool.static.icon = 'alienextension';
|
||||
ve.ui.MWSyntaxHighlightDialogTool.static.icon = 'markup';
|
||||
ve.ui.MWSyntaxHighlightDialogTool.static.title = OO.ui.deferMsg(
|
||||
'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title' );
|
||||
ve.ui.MWSyntaxHighlightDialogTool.static.modelClasses = [ ve.dm.MWBlockSyntaxHighlightNode ];
|
||||
|
|
|
@ -20,7 +20,7 @@ ve.ui.MWSyntaxHighlightInspectorTool = function VeUiMWSyntaxHighlightInspectorTo
|
|||
OO.inheritClass( ve.ui.MWSyntaxHighlightInspectorTool, ve.ui.FragmentInspectorTool );
|
||||
ve.ui.MWSyntaxHighlightInspectorTool.static.name = 'syntaxhighlightInspector';
|
||||
ve.ui.MWSyntaxHighlightInspectorTool.static.group = 'object';
|
||||
ve.ui.MWSyntaxHighlightInspectorTool.static.icon = 'alienextension';
|
||||
ve.ui.MWSyntaxHighlightInspectorTool.static.icon = 'markup';
|
||||
ve.ui.MWSyntaxHighlightInspectorTool.static.title = OO.ui.deferMsg(
|
||||
'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title' );
|
||||
ve.ui.MWSyntaxHighlightInspectorTool.static.modelClasses = [ ve.dm.MWInlineSyntaxHighlightNode ];
|
||||
|
|
Loading…
Reference in a new issue