Re-order MWCommandHelpDialog and promote/demote insert tools

Change-Id: I3ac4e556e06e2ab899d8bc07ca79d847146952e6
Depends-On: Ic12bc1c3ac96a1feb79e277e65aaf2d29af4f03f
This commit is contained in:
Ed Sanders 2018-08-22 13:28:58 +01:00 committed by Esanders
parent 919f74f10b
commit 76d0b95af3

View file

@ -28,11 +28,17 @@ OO.inheritClass( ve.ui.MWCommandHelpDialog, ve.ui.CommandHelpDialog );
ve.ui.MWCommandHelpDialog.static.commandGroups = ve.extendObject( {}, ve.ui.MWCommandHelpDialog.static.commandGroups, {
insert: {
title: OO.ui.deferMsg( 'visualeditor-shortcuts-insert' ),
promote: [],
demote: []
promote: [ 'ref', 'template', 'table' ],
demote: [ 'horizontalRule' ]
}
} );
ve.ui.MWCommandHelpDialog.static.commandGroupsOrder = [
'textStyle', 'clipboard', 'history', 'dialog',
'formatting', 'insert',
'other'
];
/* Registration */
ve.ui.windowFactory.register( ve.ui.MWCommandHelpDialog );