mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Store editor preference when switching to NWE"
This commit is contained in:
commit
cacb6d5427
|
@ -197,6 +197,7 @@ ve.init.mw.ArticleTarget.prototype.setMode = function () {
|
||||||
|
|
||||||
if ( this.mode !== oldMode ) {
|
if ( this.mode !== oldMode ) {
|
||||||
this.updateTabs( true );
|
this.updateTabs( true );
|
||||||
|
mw.libs.ve.setEditorPreference( this.mode === 'visual' ? 'visualeditor' : 'wikitext' );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue