Ensure page is reloaded after edit using Parsoid if appropriate

This passes the option to ApiParse which will ensure that it uses
the ArticleParserOptions hook so that the parser options used after
reload match the ones originally used to render the article.

Bug: T373212
Depends-On: I906affc8d2335b7bb48dff3a4b061fcf86b71cee
Change-Id: I18147254f1ac5f08a57e85eb2f031df7701dccef
This commit is contained in:
C. Scott Ananian 2024-08-29 11:38:11 -04:00
parent 6d527b9f0a
commit c026712a40

View file

@ -153,6 +153,7 @@ class ApiVisualEditorEdit extends ApiBase {
'action' => 'parse',
'oldid' => $newRevId,
'prop' => 'text|revid|categorieshtml|sections|displaytitle|subtitle|modules|jsconfigvars',
'usearticle' => true,
'useskin' => $params['useskin'],
];
// Boolean parameters must be omitted completely to be treated as false.