Merge "DesktopArticleTarget.init: handle new-section tab when in visual mode"

This commit is contained in:
jenkins-bot 2017-09-20 17:04:48 +00:00 committed by Gerrit Code Review
commit 549290991e

View file

@ -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 );
}
} );