Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3115 closed Bug (fixed)

Tags with attributes removed when they have no content

Reported by: Matthew Leffler Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.6.4
Keywords: Cc:

Description

When entering html source directly the editor removes tags with no content even if they have attributes.

To reproduce:

  1. Click on the Source button
  2. Enter the following code:
    <a href="http://media.example.com/video/video.flv"
       style="display:block;width:432px;height:240px;"
       id="player">
    </a>
    
  3. Click the Source button again.
  4. Go back into the Source by clicking the Source button

The source will be blank. If you repeat this but put a character between the <a tag and the closing </a tag it will preserve the source.

Expected behavior: The editor should only remove the empty tags that have no attributes.

Change History (3)

comment:1 Changed 15 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.0CKEditor 3.x

comment:2 Changed 15 years ago by Matthew Leffler

Resolution: fixed
Status: newclosed

This is fixed in 3.0RC. Thanks!

comment:3 Changed 15 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x
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