mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Fix setEditorPreference call"
This commit is contained in:
commit
04d8089db6
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue