-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abnormal Letter-Spacing misplaces caret #109
Comments
See below - this same problem exists with a stock standard markdown highlighted example. Problem persists even when setting See the following pen: https://codepen.io/brentkelly/pen/gOabdmQ NB: https://github.com/ClickSimply/nanoEditor doesn't seem to suffer this issue. |
CodeFlask works by syncing textarea text with highlighted editor text. So any differences in In your case you changed |
Thanks for responding. In my case it was the latter. Other CSS in my project caused this as a side effect. My advice is to reset the letter-spacing (or take it into account) for CodeFlask. |
Yep. But the issue is that other styles can still leak into CodeFlask editor. Is basically a non-ending nightmare when you run without sandboxed code. I believe this kind of issue will vanish with #119. |
Quite simple problem, having an abnormal letter-spacing will prevent the caret aligning properly. The CSS used by CodeFlash should reset the letter-spacing to the default, which is
letter-spacing: normal;
The text was updated successfully, but these errors were encountered: