Opened 10 years ago

Closed 10 years ago

#11351 closed Bug (invalid)

Allow empty anchor tags (A-tag)

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

Description

CKEditor with disabled ACF cuts off empty A-tag which widely used to create a visual buttons.

Steps to reproduce:

  1. Open http://ckeditor.com/demo#standard
  2. Click 'Source' button.
  3. Put this code into textarea:

<style> .btn {

background-image:url(http://example.com/button.png); background-repeat:no-repeat; background-position:top right; display:block; width:333px; height:80px;

} </style> <a class="btn" href="http://example.com" target="_blank"></a>

  1. Switch back to editor and then switch back to source code.
  2. Expected result: A-tag will be there.
  3. Actual result: There is no A-tag at all.

Please help to solve this issue!

Change History (1)

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

Keywords: ACF removed
Resolution: invalid
Status: newclosed
Version: 4.3.1

Empty links have no semantic value and are invisible from algorithms operating on DOM. Therefore they are stripped and preserving them would create a lot of problems.

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