Ticket #8541 (confirmed Bug)

Opened 3 years ago

Last modified 2 months ago

Wrong selection after deleted last character after contenteditable span

Reported by: mazongquan Owned by:
Priority: Normal Milestone:
Component: General Version: 3.3.1
Keywords: IE8 Cc:

Description (last modified by j.swiderski) (diff)

<html>
<head>
<title>CKEditor Sample</title>
</head>
<body>
<p> abcd<span contenteditable="false">XXX</span>e<p>
</body>
</html>

For above sample, in CKeditor 3.6.2, the cursor is move to the front of span after I clicked backspace and delete 'e' that after the span. Why is that? How can I change the code to correct it? Thanks.

Change History

comment:1 Changed 3 years ago by j.swiderski

  • Keywords selection, contenteditable removed
  • Status changed from new to pending
  • Version 3.6.2 deleted

the cursor is move to the front of span after I clicked backspace

I was not able to reproduce it in any browser.

Every time when I hit Backspace key the cursor stayed behind abcXXX^ and not in front abc^XXX.

Could you provide me with more information like in which browser (make and version) and operating system does the issue occur? Perhaps you could be able to provide more detailed test scenario here?

comment:2 Changed 3 years ago by mazongquan

Thank you for response, and sorry for missing the information about browser. I use IE8, windowsXP SP3. It seems work fine on FF and IE6, so I suppose it is only happened in IE8 or higher version maybe.

comment:3 Changed 3 years ago by j.swiderski

  • Keywords IE8 added
  • Status changed from pending to confirmed
  • Version set to 3.3.1
  • Description modified (diff)

Issue has been reproducible only in IE8 from CKEditor 3.3.1

  1. Just paste the example code
  2. Place the curosor behind 'e'
  3. Press backspace key

comment:4 Changed 3 years ago by mazongquan

I tried below content in CKEditor 3.3, the problem is still exist:

<html>
<head>
<title>CKEditor Sample</title>
</head>
<body>
<p> abcd<span contenteditable="false" style="display:inline-block">XXX</span>e<p>
</body>
</html>

So I think the root cause is inline-block.

comment:5 Changed 2 months ago by j.swiderski

This issue might be caused by #5801

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy