mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Re-order MWCommandHelpDialog and promote/demote insert tools
Change-Id: I3ac4e556e06e2ab899d8bc07ca79d847146952e6 Depends-On: Ic12bc1c3ac96a1feb79e277e65aaf2d29af4f03f
This commit is contained in:
parent
919f74f10b
commit
76d0b95af3
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue