List of steps to reproduce (step by step, including full links if applicable):
- Edit a page with VisualEditor, e.g. Wikipedia Sandbox
- Select in the menu Insert > Code block
- Start typing some code
What happens?:
When typing the textarea is always moved on the right of the cursor, and consequently we don’t see what we are typing on the left of the cursor. See video below.
This issue seems to occur when the page is newly opened (after a hard refresh Ctrl+F5/Ctrl+R), but it occurs no more the second time we open the dialog box in the same page, or possibly when we edit another page without hard refresh (but this could depend on the browser, I’m not sure about the exact conditions).
What should have happened instead?:
The textarea should not move on the right.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
- MediaWiki 1.38.0-alpha (git 2b818a6) (current version on English Wikipedia)
- SyntaxHighlight - git 1ae9ab5
- VisualEditor - git afde13a
- Occurs on all skins currently deployed (Vector, Vector 2022, Monobook, MinervaNeue, Timeless)
- Occurs on Firefox 97-98, Brave 1.35.103, Chromium 90.0.4430.212, Opera 84.0.4316.14 on Debian 10, as well as Firefox 97 on Windows 10
Occurs also on an independant MediaWiki 1.36 with SyntaxHighlight and VisualEditor in REL1_36.
