Opened 5 years ago

Closed 5 years ago

#12647 closed Bug (duplicate)

Empty links are always removed

Reported by: Boris Lykah Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

When I insert content that has a link <a/> with href attribute set, the link is removed. The CKEDITOR.dtd.$removeEmpty settings are ignored. This is a result of a fix for #7894 in fragment.js.

I would like to preserve the empty links but the attribute "data-cke-survive" looks hacky. It is not referenced anywhere else in the project. A cleaner solution would be that the editor checks for nested links instead. Also the scope of the original fix can be limited only to HTML processing for paste event in IE.

Change History (2)

comment:1 Changed 5 years ago by Boris Lykah

The attribute "data-cke-survive" does not work. The function validateElement from filter.js does not check for it.

We can add check for that attribute. Although I think it is better to clean up the code and make it agnostic of particular elements.

comment:2 Changed 5 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

DUP of #12466.

@lykahb please leave any comments or remarks in that ticket.

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