Opened 10 years ago
Last modified 10 years ago
#13575 assigned Bug
IE11: Typing in Korean with Enter Mode BR moves cursor to previous line.
Reported by: | Jakub Ś | Owned by: | Szymon Cofalik |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Enter Key | Version: | 4.0 |
Keywords: | IE11 Support | Cc: |
Description (last modified by )
- Load EnterKey sample
- Click inside editor Set Korean language and Hangul keyboard (Korean character (not Latin))
- Reload the page and change enter mode to BR
- Click at the end of line and press Enter
- Start typing
Result: Cursor will be moved up
Problem can be reproduced in IE11 only at least from CKEditor 4.0.
Issues which may be related: #10414, #12910
Edit: This is IE11 bug, it was reported here https://connect.microsoft.com/IE/feedback/details/1629173/ie11-broken-composition-in-contenteditable-when-using-korean-hangul
Attachments (2)
Change History (12)
comment:1 Changed 10 years ago by
Changed 10 years ago by
Attachment: | korean.png added |
---|
comment:2 Changed 10 years ago by
It's a weird issue. I can imagine such bug on Chrome and Safari, but not on IE11. We don't do anything special while user is typing so I don't know why the composition would be broken. I'm curious if it happens in a native content editable as well...
comment:3 Changed 10 years ago by
Sometimes although the cursor moves up, after typing letters the text is written correctly back in the correct line (d enter f g f
).
A working combination of letters that can be used to completely reproduce the issue (write in line "N" and have another letter written in line "N-1") is: enter f g j k
comment:4 Changed 10 years ago by
@Reinmar: plain contenteditable works just like CKEditor with <p>
enter mode, it has no errors.
comment:5 Changed 10 years ago by
Status: | new → confirmed |
---|
comment:6 Changed 10 years ago by
Owner: | set to Szymon Cofalik |
---|---|
Status: | confirmed → assigned |
comment:7 Changed 10 years ago by
This is IE bug (also it happens in ENTER P mode if you just use shift+enter
). Open plain contenteditable but use shift+enter
instead enter
. Then IE won't insert <p>
but <br />
. In this scenario, bug is reproducible. Also weird things happen (both in CKEditor and plain contenteditable) after caret is put in previous line (햐 is GI):
1) If you hit shift+enter
, caret is moved to the third line, below the original 햐:
Foo bar.^<br /> 햐
becomes
Foo bar.<br /> 햐<br /> ^
2) If you type something else, extra characters are inserted:
Foo bar.^<br /> 햐
type 햐, becomes
Foo bar.햫햐햐^<br /> 햐
3) If you hit backspace you get a sign that represents G.
4) However when you change keyboard to other language (win+space), the caret gets back to correct position.
It looks like caret is rendered a line above but it acts like it is partially in line above but partially in line below.
The bug does not occur on Edge.
comment:8 Changed 10 years ago by
We could try to fix it by appending ZWS when composition start and the previous node before current selection is <br />
. Sounds good in theory but I don't know if it is possible without generating additional problems.
Anyway, when I pasted ZWS before writing 햐 it worked like charm.
comment:9 Changed 10 years ago by
oh, forgot to test shift+enter on plain contenteditable, good catch.
comment:10 Changed 10 years ago by
Description: | modified (diff) |
---|
I reported an error on Microsoft's bug reporting platform. https://connect.microsoft.com/IE/feedback/details/1629173/ie11-broken-composition-in-contenteditable-when-using-korean-hangul
NOTE: I'm pressing 'G' and 'I' on Latin keyboard after pressing Enter. After pressing 'I', cursor moves to previous line.