Opened 12 years ago

Last modified 11 years ago

#9341 closed Bug

CKEditor removes <br /> tags in list items — at Version 1

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

Change History (2)

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.

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