Use OOUI 'markup' icon instead of VE's deprecated 'alienextension'

Change-Id: Iad1882c20c17792c1339cf9922b9c4c43bf6122b
This commit is contained in:
Ed Sanders 2018-03-20 17:19:10 +00:00 committed by Jforrester
parent df6eec698e
commit af1a91ade9
3 changed files with 4 additions and 3 deletions

View file

@ -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',

View file

@ -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 ];

View file

@ -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 ];