Page MenuHomePhabricator

Content preloaded with visual editor is lost when changing to wikitext editor
Closed, ResolvedPublic

Description

(As requested in task T250769.)

The following opens the visual editor to create a new page with preloaded content:

https://fr.wikiversity.org/wiki/Utilisateur:Solstag/TestPreload?veaction=edit&preload=Utilisateur%3ASolstag

Change to wikitext editor and the preloaded content disappears.

The same does not happen when first preloading with the wikitext editor, as in:

https://fr.wikiversity.org/wiki/Utilisateur:Solstag/TestPreload?action=edit&preload=Utilisateur%3ASolstag

In that case one can go back and forth and the page content is preserved.

Event Timeline

Change 684400 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] ArticleTarget: Always set fromEditedState when preloaded is true

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

Change 684400 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ArticleTarget: Always set fromEditedState when preloaded is true

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