Opened 2 years ago

Last modified 2 years ago

#16941 confirmed Bug

Deleting Paragraph before the description list, changes first list element to instead of moving cursor into list

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Webkit IE Support Cc:

Description

Steps to reproduce

  1. Allow dl/dd/dt elements to content filtering
  2. Set editors source content:

<p>Para</p><ol><li>li A</li><li>li B</li></ol><p>Para</p><dl><dt>dt A</dt><dd>dd A</dd><dt>dt B</dt><dd>dd B</dd></dl>

  1. Put cursor at the beginning of first "Para"
  2. Press delete until text is deleted plus once more to delete paragraph
  3. Repeat 3 and 4 to next paragraph and compare results

Expected result

Cursor is blinking ath the start of first list element

Actual result

First list element gets changed into paragraph

Other details (browser, OS, CKEditor version, installed plugins)

This works fine in Firefox. Chrome has been broken since CKEditor 4.4.1 and hasn't worked in IE at all.

You will get the same result in native contenteditable element in Webkit and IE with below code:

<div style="border:1px solid black; width:500px;" contenteditable="true">
<p>Para</p><ol><li>li A</li><li>li B</li></ol><p>Para</p><dl><dt>dt A</dt><dd>dd A</dd><dt>dt B</dt><dd>dd B</dd></dl>
</div>

The reason I have reported this bug is because it has been working in Chrome till version 4.4.0 so maybe there is something we can do to improve default behaviour.

Change History (2)

comment:1 Changed 2 years ago by Jakub Ś

Status: newconfirmed

Other issues concerning description lists #12274, #1333.

comment:2 Changed 2 years ago by Wiktor Walc

Just a note that CKEditor support for dd/dl/dt elements is in fact a new feature (#1333), which has not been developed yet. So it's hard to have a bug in a feature that does not exist...

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