Opened 5 years ago

Closed 5 years ago

#11578 closed Bug (invalid)

A tags are getting removed

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

Description

This is exactly the same complaint as ticket #2253. It seems that the HTML standard is being debated and misinterpreted instead of an actual issue being addressed. It is completely valid to have a tag like this:

<a href="page.html" style="width: 50px; height: 50px; background-image: ('/images/square.jpg');"></a>

CKEditor is stripping this out. It is a completely valid usage of the <a>. There are so many complaints about this? Why isn't it being addressed?

Change History (1)

comment:1 Changed 5 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed

They are valid (although not the best practice) on web pages, but they are not valid for editing purposes. For editor they have no meaning because they are empty and thus, for simplification they are removed. Otherwise they would cause issues. How such link should be handled? As a text? No, because there's no text. So as an image? I think so, but editor cannot recognize that. And there's a huge difference between how inline elements with text and images are handled.

So, if you want to be able to edit such element, then use <a href="page.html"><img src="images/square.jpg"></a>.

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