Opened 12 years ago

Closed 12 years ago

#9341 closed Bug (fixed)

CKEditor removes <br /> tags in list items

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: Core : Lists Version: 3.0.2
Keywords: Cc:

Description (last modified by Jakub Ś)

Reported by one of our customers.

CKEditor removes <br /> tags (made with SHIFT + ENTER) at end of a <li> tag. It happens when nested lists are used.

<ul>
<li>Test 1
<ul>
<li>Test 1.1</li>
</ul>
</li>
</ul>

If you add a <br />&nbsp; (SHIFT + ENTER) after "Test 1" and switch between WYSIWYG and the Source view, then the CKEditor will remove the <br />.
However, if you add more then one <br /> tag, then only the last one will be removed per each view switch. This happens also on loading HTML into the editor.

Problem has been reproducible in all browsers from CKEditor 3.0.2

Attachments (1)

Test-case.txt (720 bytes) - added by Jakub Ś 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Jakub Ś

Attachment: Test-case.txt added

comment:1 Changed 12 years ago by Jakub Ś

Description: modified (diff)
Status: newconfirmed

Please have a look at attached file. The <br />&nbsp; after "Test 3" will be removed by CKEditor.

comment:2 Changed 12 years ago by Jakub Ś

This is working fine in CKE 4.x (v4) - http://nightly-v4.ckeditor.com/.

comment:3 Changed 12 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: confirmedclosed

I confirm that this has been fixed on v4.

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