Merge "Store editor preference when switching to NWE"

This commit is contained in:
jenkins-bot 2016-11-02 21:39:11 +00:00 committed by Gerrit Code Review
commit cacb6d5427

View file

@ -197,6 +197,7 @@ ve.init.mw.ArticleTarget.prototype.setMode = function () {
if ( this.mode !== oldMode ) {
this.updateTabs( true );
mw.libs.ve.setEditorPreference( this.mode === 'visual' ? 'visualeditor' : 'wikitext' );
}
};