Steps to replicate the issue (include links if applicable):
- Edit a page that contains a citation needed template (see: https://en.wikipedia.org/wiki/Category:All_articles_with_unsourced_statements) in VisualEditor
- Select a [citation needed]
- Click the "add a citation" button
- Add the citation
What happens?:
The placeholder citation ([...]) appears after the citation needed template.
Once done, a new citation is added after the citation needed template.
What should have happened instead?:
The citation needed template should have been replaced with the placeholder and then the new citation.


