Opened 11 years ago
Last modified 11 years ago
#10791 confirmed Bug
It is possible to write in hidden elements in IE 9+.
Reported by: | Daazku | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Selection | Version: | 4.0 |
Keywords: | IE9 IE10 | Cc: |
Description
It seems that in IE10 (at least) you can write in hidden elements that have innerHTML !== ; If the said element is contenteditable:false it is worse because you cannot get out of it.
It may relate to this: https://dev.ckeditor.com/ticket/10641
Test case: http://jsbin.com/UNOWOba/5
PS: I discovered the problem because I use an element (<span contenteditable="false" style="display:none"> </span>) just before a space holder that is removed on click and on IE the users could not write... It may suggest a cursor positionning problem. PSS: No problem in chrome.
Attachments (1)
Change History (3)
comment:1 Changed 11 years ago by
Component: | General → Core : Selection |
---|---|
Summary: | It is possible to write in hidden elements in IE 10. → It is possible to write in hidden elements in IE 9+. |
Changed 11 years ago by
comment:2 Changed 11 years ago by
Keywords: | IE9 IE10 added |
---|---|
Status: | new → confirmed |
Version: | 4.2 → 4.0 |
Problem can be reproduced from CKEditor 4.0 in IE9-10 in inline editor only.
Put test.htm file in samples folder and open it in a browser. Next click inside each editor and try to write something.
- Iframed editor works
- inline editor with non-empty and invisible span doesn't work.
- In this span it is only possible to write after pressing enter
<span style="display:none"> </span>
- In this span it isn't possible to write at all
<span style="display:none" contenteditable="false"> </span>
Well it seems to be a selection problem from IE 9+. Probably caused by getStartElement??
In Chrome the returned element is the editor.
In IE8- the returned element is a P.
In IE9+ the returned element is the span...