Page MenuHomePhabricator

CodeMirror 6: Cursor is offset when viewing a mix of LTR/RTL interfaces and page langauge
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
GMikesell-WMF
Mar 7 2024, 8:23 PM
Referenced Files
F42873904: 2024-03-20_12-47-54.png
Mar 22 2024, 7:36 PM
F42873896: 2024-03-20_12-47-06.png
Mar 22 2024, 7:36 PM
F42873888: 2024-03-20_12-46-00.png
Mar 22 2024, 7:36 PM
F42873880: 2024-03-20_12-44-40.png
Mar 22 2024, 7:36 PM
F42873839: T359589_CM6_LTRSafari.webm
Mar 22 2024, 7:36 PM
F42873821: T359589_CM6_LTRFF.webm
Mar 22 2024, 7:36 PM
F42873766: T359589_CM6_LTR1.webm
Mar 22 2024, 7:36 PM
F42873422: T359589_CM6_LTRURL.webm
Mar 22 2024, 7:36 PM

Description

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

What happens?:

The cursor is offset by roughly 2 characters.

This occurs when:

What should have happened instead?:
The cursor should be where it is expected and not offset.

QA Results - Beta

Event Timeline

MusikAnimal renamed this task from CodeMirror6: Bold/Italicize words are not fully captured to CodeMirror 6: Cursor is offset when viewing a mix of LTR/RTL interfaces and page langauge.Mar 7 2024, 11:37 PM
MusikAnimal claimed this task.
MusikAnimal updated the task description. (Show Details)

Change 1009631 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CodeMirror@master] CodeMirror: add 'dir' and 'lang' attrs to .cm-editor and not .cm-content

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

Change 1009631 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] CodeMirror: add 'dir' and 'lang' attrs to .cm-editor and not .cm-content

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

@MusikAnimal The cursor should be where it is expected and not offset as seen in the videos and screenshots. This will be moved to Done. Thanks for all your work!

Status: ✅PASS
Environment: Beta: 1.42.0-alpha (1db03e0)
OS: macOS Sonoma 14.4
Browser: Chrome 122, Firefox 123, Safari 17.3, Edge 122
Skins. Vector 2022, Vector 2010, Minerva, Monobook, Timeless
Device: MBA M2
Emulated Device:: n/a
Test Links:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog#
https://en-rtl.wikipedia.beta.wmflabs.org/w/index.php?title=I_Started_With_100K&action=edit

✅AC1: https://phabricator.wikimedia.org/T359589

Interface in LTR and page language in RTL- PreferenceInterface in LTR and page language in RTL- URLInterface in RTL and page language in LTR

Chrome are the default videos above

FirefoxSafari
Vector 2010MinervaMonobookTimeless
2024-03-20_12-44-40.png (1×3 px, 718 KB)
2024-03-20_12-46-00.png (1×1 px, 296 KB)
2024-03-20_12-47-06.png (1×3 px, 769 KB)
2024-03-20_12-47-54.png (1×1 px, 435 KB)