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">&nbsp;</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)

test.htm (2.6 KB) - added by Jakub Ś 11 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 11 years ago by Daazku

Component: GeneralCore : Selection
Summary: It is possible to write in hidden elements in IE 10.It is possible to write in hidden elements in IE 9+.

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...

Last edited 11 years ago by Daazku (previous) (diff)

Changed 11 years ago by Jakub Ś

Attachment: test.htm added

comment:2 Changed 11 years ago by Jakub Ś

Keywords: IE9 IE10 added
Status: newconfirmed
Version: 4.24.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.

  1. Iframed editor works
  2. inline editor with non-empty and invisible span doesn't work.
  3. In this span it is only possible to write after pressing enter <span style="display:none">&nbsp;</span>
  4. In this span it isn't possible to write at all <span style="display:none" contenteditable="false">&nbsp;</span>
Last edited 11 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy