#3829: Links do not get deleted correctly
----------------------+-----------------------------------------------------
  Reporter:  damo     |       Owner:               
      Type:  Bug      |      Status:  reopened     
  Priority:  Normal   |   Milestone:  CKEditor 3.0 
 Component:  General  |     Version:               
Resolution:           |    Keywords:  IBM Confirmed
----------------------+-----------------------------------------------------
Changes (by fredck):

  * status:  closed => reopened
  * resolution:  wontfix =>


Comment:

 I also find this one quite strange.

 The fact is that, during the editor usage, we could have some empty <a>
 being left in the DOM, due to the implicit browser behavior to some
 operations. This link deletion is a case. In V2, we simply cleanup empty
 <a> (with no "name" attribute), but it looks like this is not happening
 with V3. We could simply implement the same cleanup rule here.

 Note that the attached screenshot precisely shows that there is also a
 <br> inside the link, and in that case it's correct to not have the link
 deleted because the <br> has not been selected before deletion.

 In any case, I'm able to confirm this one, with IE only though, even
 without the <br>:

  1. Load the following HTML:

 {{{
 <p><a href="http://example.com";>Test</a></p>
 }}}

  2. Double click on "Test" to select it.

  3. Hit DEL to delete it.

  4. Switch back to source. You will have the following, which is wrong:

 {{{
 <p>
         <a href="http://example.com";></a></p>
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3829#comment:5>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to