Page MenuHomePhabricator

Review new VisualEditor hooks and update ContentTranslation as needed
Closed, ResolvedPublic2 Estimated Story Points

Description

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.

Event Timeline

Change #1139809 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] newarticle entrypoint: Use new VE hook system

https://gerrit.wikimedia.org/r/1139809

Change #1139809 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] newarticle entrypoint: Use new VE hook system

https://gerrit.wikimedia.org/r/1139809

Is there a list or search query for hooks to check and use as a checklist?

Nikerabbit triaged this task as Medium priority.May 5 2025, 8:33 AM
Nikerabbit set the point value for this task to 2.

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.