mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Don't require a selection to run any of the save actions
Change-Id: I3a8f7e1e9e3714f226ac240a429a62d011112285
This commit is contained in:
parent
dc2366cbba
commit
13ef05b489
|
@ -79,14 +79,12 @@ ve.ui.actionFactory.register( ve.ui.MWSaveDialogAction );
|
|||
|
||||
ve.ui.commandRegistry.register(
|
||||
new ve.ui.Command(
|
||||
'showSave', 'mwSaveDialog', 'save',
|
||||
{ supportedSelections: [ 'linear', 'table' ] }
|
||||
'showSave', 'mwSaveDialog', 'save'
|
||||
)
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
new ve.ui.Command(
|
||||
'showChanges', 'mwSaveDialog', 'review',
|
||||
{ supportedSelections: [ 'linear', 'table' ] }
|
||||
'showChanges', 'mwSaveDialog', 'review'
|
||||
)
|
||||
);
|
||||
if ( mw.libs.ve.isWikitextAvailable ) {
|
||||
|
@ -94,8 +92,7 @@ if ( mw.libs.ve.isWikitextAvailable ) {
|
|||
mw.loader.using( 'ext.visualEditor.mwwikitext' ).then( function () {
|
||||
ve.ui.wikitextCommandRegistry.register(
|
||||
new ve.ui.Command(
|
||||
'showPreview', 'mwSaveDialog', 'preview',
|
||||
{ supportedSelections: [ 'linear', 'table' ] }
|
||||
'showPreview', 'mwSaveDialog', 'preview'
|
||||
)
|
||||
);
|
||||
} );
|
||||
|
@ -103,13 +100,13 @@ if ( mw.libs.ve.isWikitextAvailable ) {
|
|||
ve.ui.commandRegistry.register(
|
||||
new ve.ui.Command(
|
||||
'saveMinoredit', 'mwSaveDialog', 'save',
|
||||
{ args: [ 'wpMinoredit' ], supportedSelections: [ 'linear', 'table' ] }
|
||||
{ args: [ 'wpMinoredit' ] }
|
||||
)
|
||||
);
|
||||
ve.ui.commandRegistry.register(
|
||||
new ve.ui.Command(
|
||||
'saveWatchthis', 'mwSaveDialog', 'save',
|
||||
{ args: [ 'wpWatchthis' ], supportedSelections: [ 'linear', 'table' ] }
|
||||
{ args: [ 'wpWatchthis' ] }
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue