On Sat, Oct 8, 2016 at 5:37 PM, James HK jamesin.hongkong.1@gmail.com wrote:
Hi,
VE's edits should be (indirectly) going through the action=edit API.
I'm not sure this answer is very helpful.
To translate: "it should work exactly the same as edits made with the API", or to elaborate further: "yes, a ParserAfterParse hook should be called at parse time after an edit made with VisualEditor, though it won't be reflected while you're looking at Visual Editor".
There might, however, be something about how the hook is being used that causes it not to do what is expected when editing is done via the API versus when it's done using the classic editor form.
For instance, if the hook assumes it's happening during action=edit and tries to pull data from $_REQUEST or $wgRequest, it will very likely fail in this and other circumstances when parsing happens separately from an edit, or happens during an edit but with different parameters and circumstances than the classic HTML form editor.
Without knowing what the hook is doing, it's hard to say whether something else might be going wrong.
-- brion