Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311863

Change subject: Pass document to preview through PST
......................................................................

Pass document to preview through PST

Change-Id: I2712c26c94cf62f8ec8e68a9912e6a557f41f6a4
---
M modules/ve-mw/init/ve.init.mw.ArticleTarget.js
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/63/311863/1

diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js 
b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js
index 4ae2277..3ffbf51 100644
--- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js
+++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js
@@ -918,7 +918,8 @@
                        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 );

-- 
To view, visit https://gerrit.wikimedia.org/r/311863
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2712c26c94cf62f8ec8e68a9912e6a557f41f6a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <a...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to