Merge "Fix setEditorPreference call"

This commit is contained in:
jenkins-bot 2015-12-14 17:08:42 +00:00 committed by Gerrit Code Review
commit 04d8089db6

View file

@ -1372,7 +1372,7 @@ ve.init.mw.DesktopArticleTarget.prototype.onUnload = function () {
*/
ve.init.mw.DesktopArticleTarget.prototype.switchToWikitextEditor = function ( discardChanges, modified ) {
var target = this;
mw.libs.ve.init.setEditorPreference( 'wikitext' );
mw.libs.ve.setEditorPreference( 'wikitext' );
if ( discardChanges ) {
if ( modified ) {