mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "ve.init.mw.Target: Use mw.libs.ve.targetSaver.getHtml in getWikitextFragment"
This commit is contained in:
commit
1d34b069ad
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue