Pass document to preview through PST

Change-Id: I2712c26c94cf62f8ec8e68a9912e6a557f41f6a4
This commit is contained in:
Alex Monk 2016-09-21 00:04:31 +01:00 committed by James D. Forrester
parent 8a80b5bbc3
commit 2b8cd0fa13

View file

@ -918,7 +918,8 @@ ve.init.mw.ArticleTarget.prototype.onSaveDialogPreview = function () {
action: 'visualeditor',
paction: 'parsefragment',
page: mw.config.get( 'wgRelevantPageName' ),
wikitext: this.getDocToSave()
wikitext: this.getDocToSave(),
pst: true
} ).always( function ( response, details ) {
if ( ve.getProp( response, 'visualeditor', 'result' ) === 'success' ) {
target.saveDialog.showPreview( response.visualeditor.content );