What is the problem?
Switching editing modes in VE on the intake form (via the edit dropdown at the top-right of the editor) does not work sometimes.
Steps to reproduce problem
Setting your VE editing preference
- Make sure "Use the wikitext mode inside the visual editor, instead of a different wikitext editor" is set in Preferences > Editing
- Go to any normal page (not wishlist-related) and enter editing mode
- Use the dropdown at the top-right to change editors and set your VE editing mode preference
Reproducing the bug
- Go to https://wishlist-test.toolforge.org/wiki/Community_Wishlist/Intake
- Use the edit mode dropdown to try to change from visual to source or vice versa
Expected behavior:
It properly switches to the desired editor, preserving all content.
Observed behavior:
- If your preferences have you starting with visual mode, you will not be able to switch to wikitext
- If your preferences have you starting with source mode, you can switch to visual once, but will be unable to return to source mode
Notes
I worked with the Editing team on this for quite a while and had to stop. They suggesting using the ext.visualEditor.articleTarget module (or some class thereof), and dropping the registration of the mw.lib.ve.* tools as the articleTarget module does this for us. I attempted this and was not able to get it working. Slack conversation is at https://wikimedia.slack.com/archives/C010UHLBLBX/p1717185554997149 for those who can see it (sorry).
QA Results - Wishlist-test.toolforge
AC | Status | Details |
---|---|---|
1 | ❌ | T368011#9947141 |