Closed willmoffat closed 14 years ago
Aha - this may be the same issue I was seeing as reported in the google group. I also had testWrapping set to false.
Hey Will,
Yeah this is an unintended side effect of my workaround for https://bugs.webkit.org/show_bug.cgi?id=47806 . Now, thank me, for I just spent at least three hours blindly experimenting to find another workaround. I pushed something ( 3798a6598c2f7190aa2751b494871b27137c50ac ) that seems to do the trick. If things continue this way, it'll soon be more efficient to dive into the webkit code and fix their bugs for them, rather than work around stuff on our side.
So long, Marijn
Hi Marijn, thanks for looking at this. Unfortunately now I'm seeing https://bugs.webkit.org/show_bug.cgi?id=23474 again, but only on my site, not in your demos. Investigating further...
\u200b chars are not removed if textWrapping is false.
To reproduce:
editor.mirror.setTextWrapping(false); /\u200b/.test(editor.mirror.getCode()) // --> false
/\u200b/.test(editor.mirror.getCode()) // --> true
These chars break indentation.