mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Pass document to preview through PST
Change-Id: I2712c26c94cf62f8ec8e68a9912e6a557f41f6a4
This commit is contained in:
parent
8a80b5bbc3
commit
2b8cd0fa13
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue