Page MenuHomePhabricator

On mobile VE, cursor behaves unexpectedly on content that causes both a PasteCheck and ToneCheck
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • On mobile VisualEditor with edit checks enabled, paste some tone-violating content so that a PasteCheck and ToneCheck will both trigger on the content.
  • With your cursor at the end of the content you just pasted, try to type.

What happens?:
The cursor moves to just before the character you typed. This causes confusing behavior when typing; for example, when pressing enter, this means it bounces you back to the content you just pasted.

What should have happened instead?:
The cursor should stay at the end of where you're typing.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
In this recording I'm just pressing the enter key, and you can see the cursor keeps going back to the content (though the new line is being created).