We need to rewire the autosave mechanism with the visual editors transaction events based on the CX-VE integration architecture
Description
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/ContentTranslation | master | +121 -44 | Autosave: On section content change, save the content |
Related Objects
Event Timeline
In https://gerrit.wikimedia.org/r/#/c/379213/, basic autosave support implemented.
It connects the update events for the section nodes to the translation update events and do autosave. Section HTML content is extracted from the source and target
models. Some refactoring and utility method additions done for that.
Many sections throw errors while extracting content, for example sections with references. That need investigation and follow up fixes.
Change 379213 had a related patch set uploaded (by Catrope; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Autosave: On section content change, save the content.
Change 379213 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Autosave: On section content change, save the content
Auto-saving has been confirmed. After the patch for restoration [T176843] of a saved translation is merged, the complete workflow will need to be retested for a final confirmation.
Checked in http://cx2-testing.wmflabs.org/index.php?
It correctly counts the time and displays it to a user: e.g. "Saved just now", "Saved 16 minutes ago".
There seems to be a regression. Autosave does not seem to work on CX2 right now. We may wat to investigate and fix.