What is the problem?
When using WikiEditor (2010) in an RTL language on a page which has line numbering and I enable CodeMirror, the WikiEditor textarea is blank.
Pages which don't have line numbering appear to work fine.
Therefore, depending how the wiki is configured, I will not be able to edit some or all pages in RTL using CodeMirror. I have to use the regular editor.
This will affect Template pages on all wikis and all pages on:
- group0 wikis
- cawiki
- dewiki
- wikitech
This may be related to recent work on Realtime Preview (see T303767). It occurs either when I have it enabled or disabled (via beta features).
Steps to reproduce problem
- https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Template:Top_icon&action=edit&uselang=he
- Enable CodeMirror (by clicking the little pen icon)
Expected behavior: You should see the wikitext
Observed behavior: The wikitext disappears
Environment
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.39.0-alpha (2425e00) 06:50, 11 April 2022.
Editor: WikiEditor 0.5.3 (c124ea6) 06:14, 11 April 2022.
