Merge "ve.init.mw.Target: Use mw.libs.ve.targetSaver.getHtml in getWikitextFragment"

This commit is contained in:
jenkins-bot 2022-07-27 00:07:35 +00:00 committed by Gerrit Code Review
commit 1d34b069ad

View file

@ -577,7 +577,9 @@ ve.init.mw.Target.prototype.getWikitextFragment = function ( doc, useRevision )
var params = {
action: 'visualeditoredit',
paction: 'serialize',
html: ve.dm.converter.getDomFromModel( doc ).body.innerHTML,
html: mw.libs.ve.targetSaver.getHtml(
ve.dm.converter.getDomFromModel( doc )
),
page: this.getPageName()
};