Page MenuHomePhabricator

"Sorry, this element can only be edited in source mode for now" in VisualEditor for wikitext which should be supported
Open, HighPublicBUG REPORT

Description

What is the problem?

When I switch to VisualEditor, I am sometimes seeing Sorry, this element can only be edited in source mode for now (you need to hover over to see the full message).

The wikitext seems to be valid and not include anything like templates. See example from reproduction steps.

Steps to reproduce problem
  1. https://wishlist-test.toolforge.org/wiki/Community_Wishlist/Intake
  2. In Describe your wish, enter (remember to include the leading newline)
foo

== hi, any help is appreciated ==
  1. Switch to VisualEditor

Expected behaviour: It should look the same as editing any other page with VisualEditor.
Observed behaviour: You see Sorry, this element can ...

Screenshots

sorry_this_element_can.png (555×988 px, 50 KB)

Details

TitleReferenceAuthorSource BranchDest Branch
DescriptionField: use Target's parseDocument() when switching to visualrepos/commtech/wishlist-intake!122musikanimalT368396main
Customize query in GitLab

Event Timeline

samwilson merged https://gitlab.wikimedia.org/repos/commtech/wishlist-intake/-/merge_requests/122

DescriptionField: use Target's parseDocument() when switching to visual