mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Switch from NWE to VE using 'Edit' tab
Bug: T143577 Change-Id: I19d942c879c9ccf70e95beb5f8de589eb6363039
This commit is contained in:
parent
ed54a4b676
commit
3c25f3aede
|
@ -570,7 +570,15 @@
|
||||||
if ( isLoading ) {
|
if ( isLoading ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ( active ) {
|
||||||
|
targetPromise.done( function ( target ) {
|
||||||
|
if ( target.mode === 'source' ) {
|
||||||
|
target.switchToVisualEditor();
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
} else {
|
||||||
init.activateVe( 'visual' );
|
init.activateVe( 'visual' );
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onEditSourceTabClick: function ( e ) {
|
onEditSourceTabClick: function ( e ) {
|
||||||
|
|
Loading…
Reference in a new issue