mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Re-order command registry to match toolbar order
Bonus: fix grammar in DialogAction comment. Change-Id: I0fdf5f028f7191b0d662456ec1506490d7439a1a
This commit is contained in:
parent
4d76d9382b
commit
76091d4474
|
@ -37,7 +37,7 @@ ve.ui.DialogAction.static.methods = [ 'open' ];
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* Open an Dialog.
|
||||
* Open a Dialog.
|
||||
*
|
||||
* @method
|
||||
* @param {string} name Symbolic name of Dialog to open
|
||||
|
|
|
@ -48,6 +48,12 @@ ve.ui.commandRegistry = new ve.ui.CommandRegistry();
|
|||
|
||||
/* Registrations */
|
||||
|
||||
ve.ui.commandRegistry.register(
|
||||
'undo', new ve.ui.Command( 'history', 'undo' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'redo', new ve.ui.Command( 'history', 'redo' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'bold', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/bold' )
|
||||
);
|
||||
|
@ -55,10 +61,10 @@ ve.ui.commandRegistry.register(
|
|||
'italic', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/italic' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'code', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/code' )
|
||||
'link', new ve.ui.Command( 'inspector', 'open', 'link' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'strikethrough', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/strike' )
|
||||
'clear', new ve.ui.Command( 'annotation', 'clearAll' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'underline', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/underline' )
|
||||
|
@ -69,9 +75,6 @@ ve.ui.commandRegistry.register(
|
|||
ve.ui.commandRegistry.register(
|
||||
'superscript', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/superscript' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'clear', new ve.ui.Command( 'annotation', 'clearAll' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'indent', new ve.ui.Command( 'indentation', 'increase' )
|
||||
);
|
||||
|
@ -79,17 +82,14 @@ ve.ui.commandRegistry.register(
|
|||
'outdent', new ve.ui.Command( 'indentation', 'decrease' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'link', new ve.ui.Command( 'inspector', 'open', 'link' )
|
||||
'code', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/code' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'strikethrough', new ve.ui.Command( 'annotation', 'toggle', 'textStyle/strike' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'language', new ve.ui.Command( 'inspector', 'open', 'language' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'redo', new ve.ui.Command( 'history', 'redo' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'undo', new ve.ui.Command( 'history', 'undo' )
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
'paragraph', new ve.ui.Command( 'format', 'convert', 'paragraph' )
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue