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
Editor doesn't find the correct char offset to edit in Internet Explorer 11 #2108
Comments
@alexlehm Firstly, I'd really appreciate if you took a few second to update this bug report to match our template although this is an 'IE11' bug, Windows has a funny way of making sure the OS version matters too etc. It's also pretty hard to follow what you're doing in the screencast, I have no way of knowing which button you're pressing, and it's hard to watch both sides at the same time, so I'm not 100% sure what's going on. I'd really appreciate a clear set of reproduction steps. I believe the issue you're running into is one of several CodeMirror bugs: codemirror/codemirror5#1913, codemirror/codemirror5#1957 We're going to have to wait for CodeMirror to fix them, or replace CodeMirror, one of which should happen in milestone 0.7. |
Hello there, I've been hitting the same issue as well in IE11, except on Windows 8.1 64bit. I'll do my best to follow the template as you've recommended. If you need anything else to clarify it, please let me know as I'd be happy to help get this resolved! Screen capture will be available on Vimeo here when the conversion is complete. Issue SummaryIf you enter a word at the end of the line that is fills the line to the exact character maximum for line and add a space, the word will return to the previous line instead of wrapping, and cursor will be pushed ahead by the number of characters of the word that caused the wrap. Steps to Reproduce
There is an offset in the editor that pushes the cursor over by a number of characters, making it challenging to write content. Technical details
|
I am in the process of upgrading CodeMirror to resolve this. |
issue TryGhost#2385, issue TryGhost#2108 - Separate out the various objects which form the editor into their own modules - Decouple the modules where possible - Rename and reshuffle bits of modules for consistency - Minimise public APIs of the modules, and ensure they are consistent - Add comments to the modules
Issue Summary
I was doing some tests with different browsers to reproduce the error described in #1007 and I noticed an issue with the editor in Internet Explorer 11, it seems to calculate the offset of the chars to edit wrong sometimes.
Steps to Reproduce
Start with a default installation of Ghost and change the text of the starter article to
The edit window inserts a linebreak line this
However when moving the cursor around, the editor seems to think that the first line ends after brown and the 2nd line has 4 more characters that appear as blanks.
When editing the 2nd line, the typed chars are inserted 4 chars to the left, e.g. if you type a char into the 2nd char of the line (between j and u), it is inserted in the previous word resulting in fQopx.
For some reason the calculation assumes that the last word in the previous line is wrapped around to the beginning of the 2nd line.
Technical details
Since this is probably related to the font layout, I should mention that my screen has a resolution of 1920x1080
Please take a look at the screen recording, there you should see the error.
Basically the offset is 4 chars to the left, which is the the width of the " fox" word in the line above and the additional spaces in the current line.
The text was updated successfully, but these errors were encountered: