Page MenuHomePhabricator

Changing the number of child nodes in a template rendering moves the cursor
Closed, ResolvedPublic

Description

For example, inserting {{FlowMention}} results in the rendering changing from a single <span>placeholder</span> to a two-node [ '@', <a>user</a> ]. The cursor which is placed after the placeholder is then moved in front of it.

This would apply to any inline template that expands in this way.

Event Timeline

Change 531945 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] GeneratedContentNode: Re-apply model selection if DOM node count changes

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

Change 531945 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] GeneratedContentNode: Re-apply model selection if DOM node count changes

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

Change 532425 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (3a669b323)

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

Change 532425 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (3a669b323)

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

ppelberg claimed this task.