VisualEditor has introduced a new client-side hook for developers to use when integrating with the VisualEditor target lifecycle. This hook should replace the existing lifecycle-related hooks, and be more consistent between different platforms. In addition, the new hook will apply to uses of VisualEditor outside of just full article editing, allowing gadgets to interact with the editor in DiscussionTools as well. The Editing Team intends to deprecate and eventually remove the old lifecycle hooks, so any use cases that this new hook does not cover would be of interest to them and can be shared in the task https://phabricator.wikimedia.org/T355555.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| newarticle entrypoint: Use new VE hook system | Santhosh | mediawiki/extensions/ContentTranslation | master | +15 -2 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Change #1139809 had a related patch set uploaded (by Santhosh; author: Santhosh):
[mediawiki/extensions/ContentTranslation@master] newarticle entrypoint: Use new VE hook system
Comment Actions
Change #1139809 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] newarticle entrypoint: Use new VE hook system
Comment Actions
I used this documentation https://www.mediawiki.org/wiki/VisualEditor/Hooks for code search
Comment Actions
This is a bit hard to test, but if I force it to actually trigger e.g. via mw.loader.load( 'ext.cx.entrypoints.newarticle.veloader' ); then it works fine.