[NWE + CodeMirror] Syntaxhighlighting and actual text out of sync for some special characters
Closed, ResolvedPublic1 Story Points

Description

Steps to reproduce:

  1. Edit in NWE with syntaxhighlighting enabled.
  2. Copy a word with a soft hyphen in it, I used "Kindergarten­stu­die" from https://de.wikipedia.org/w/index.php?title=Sebastian_Kurz&diff=prev&oldid=167161199.
  3. Insert it.

Note that CodeMirror shows red dots for the SHYs, which increases the length of the displayed syntax, while these characters are invisible in the actual text. The same might apply for other such characters as well.

Schnark created this task.Jul 12 2017, 9:50 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptJul 12 2017, 9:50 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 364736 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/CodeMirror@master] VE CodeMirror: Don't handle any specialChars

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

Change 364736 merged by jenkins-bot:
[mediawiki/extensions/CodeMirror@master] VE CodeMirror: Don't handle any specialChars

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

@Esanders Does the above patch fix this issue?

I believe so

Deskana triaged this task as Normal priority.Jul 19 2017, 11:12 PM
Deskana set the point value for this task to 1.
Deskana assigned this task to Esanders.
Deskana closed this task as Resolved.
Restricted Application added a project: User-Ryasmeen. · View Herald TranscriptJul 19 2017, 11:12 PM