mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "DesktopArticleTarget.init: handle new-section tab when in visual mode"
This commit is contained in:
commit
549290991e
|
@ -609,9 +609,11 @@
|
|||
if ( mode === 'visual' && target.getDefaultMode() === 'source' ) {
|
||||
target.switchToVisualEditor();
|
||||
} else if (
|
||||
mode === 'source' && target.getDefaultMode() === 'source'
|
||||
mode === 'source'
|
||||
) {
|
||||
// Requetsed section may have changed
|
||||
// Requested section may have changed, or we may need
|
||||
// to switch from visual mode to source mode with a
|
||||
// section.
|
||||
target.switchToWikitextSection( section );
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue