mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-01 03:26:28 +00:00
CommentController: Apply pre-save transform when switching to visual
Parsoid doesn't understand syntax expanded during pre-save transform, e.g. [[User:Foo|]] or ~~~~, and it gets nowikied when switching back. Change-Id: I791426d9d6c0a1399b1e95039b11e43a3e5bf79f
This commit is contained in:
parent
03665de09e
commit
b6edd8ddef
|
@ -462,7 +462,8 @@ CommentController.prototype.switchToVisual = function () {
|
||||||
action: 'visualeditor',
|
action: 'visualeditor',
|
||||||
paction: 'parsefragment',
|
paction: 'parsefragment',
|
||||||
page: pageData.pageName,
|
page: pageData.pageName,
|
||||||
wikitext: wikitext
|
wikitext: wikitext,
|
||||||
|
pst: true
|
||||||
} ).then( function ( response ) {
|
} ).then( function ( response ) {
|
||||||
return response && response.visualeditor.content;
|
return response && response.visualeditor.content;
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue