Hi,
VE's edits should be (indirectly) going through the action=edit API.
I'm not sure this answer is very helpful. I wonder about this as well whether edits initiated by VE/NWE will actually end-up being processed by the standard hooks available or not (and I'm mean those provided by PHP, no disrespect but I don't care much for node.js, parsoid or whathever is en vogue these days).
As an extension developer (with limited volunteer time), I don't have the desire to create a setup to incur a technical dept beyond HTML/JS and PHP but to users who use our extensions I would expect that hooks such as `ParserAfterTidy`, `ParserAfterParse` or `InternalParseBeforeLinks` or run no matter what or how an edit was made.
Cheers
On 10/8/16, Alex Monk amonk@wikimedia.org wrote:
VE's edits should be (indirectly) going through the action=edit API.
On 8 October 2016 at 20:56, Stephan Gambke s7eph4n@gmail.com wrote:
Hi.
I have an extension that hooks into ParserAfterParse to modify the generated HTML (Lingo). The problem is, that apparently this hook is never called when a page is edited using Visual Editor, which means my extension does not get to modify the page's HTML content until it is purged (action=purge) or edited using the old editor.
Is this intentional or is it a VE bug? Does anybody have any advice on how I could work around this? E.g. an alternative hook I should use?
Cheers Stephan _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- Alex Monk VisualEditor/Editing team https://wikimediafoundation.org/wiki/User:Krenair_(WMF) _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l