mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Followup 6d21d83
: unbreak switching to edit source
Forgot to pass the wikitext parameter through, oops :( Bug: T76114 Change-Id: Ic852e4b10c17b2417f582f35fabb87823e0202e3
This commit is contained in:
parent
a14f88d80e
commit
616a9cd1bf
|
@ -1748,9 +1748,9 @@ ve.init.mw.ViewPageTarget.prototype.switchToWikitextEditor = function ( discardC
|
||||||
} else {
|
} else {
|
||||||
this.serialize(
|
this.serialize(
|
||||||
this.docToSave || ve.dm.converter.getDomFromModel( this.surface.getModel().getDocument() ),
|
this.docToSave || ve.dm.converter.getDomFromModel( this.surface.getModel().getDocument() ),
|
||||||
function () {
|
function ( wikitext ) {
|
||||||
ve.track( 'mwedit.abort', { type: 'switchwith', mechanism: 'navigate' } );
|
ve.track( 'mwedit.abort', { type: 'switchwith', mechanism: 'navigate' } );
|
||||||
this.submitWithSaveFields( { wpDiff: 1, veswitched: 1 } );
|
this.submitWithSaveFields( { wpDiff: 1, veswitched: 1 }, wikitext );
|
||||||
}.bind( this )
|
}.bind( this )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue