Opened 10 years ago

Closed 10 years ago

#3813 closed Bug (wontfix)

Unlink result in fragmental <a>

Reported by: Garry Yao Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: Core : Styles Version:
Keywords: Discussion Cc:

Description (last modified by Garry Yao)

Reproducing Procedures

  1. Open the replace by class example page;
  2. Make the following selection;
    <p>
    	<strong>bo[ld</strong> and lin]k</p>
    
  3. Open link dialog to add a link;
  4. Make a new collapsed selection as following and click 'Unlink';
    <p>
    	<strong>bo<a href="http://example.com">ld</a></strong><a href="http://example.com"> and ^lin</a>k</p>
    
  • Actual Result:
    <p>
    	<strong>bo<a href="http://example.com">ld</a></strong> and link</p>
    
  • Expected Result:
    <p>
    	<strong>bold</strong> and link</p>
    

Change History (3)

comment:1 Changed 10 years ago by Garry Yao

Description: modified (diff)

Correct the description to clarify the problem.

comment:2 Changed 10 years ago by Garry Yao

Keywords: Discussion added

I've checked the following wysiwyg editors are behaving in the same way which make me wonder if it should be called bug.

  1. Dreamweaver
  2. MS-WORD
  3. TinyMCE

comment:3 Changed 10 years ago by Frederico Caldeira Knabben

Resolution: wontfix
Status: newclosed

There is no way for us to understand that those links are related and that the user really wants to have both of them removed. The only possible feature we could think about is to not break links when applying them. Using the reported TC, we could have the following after applying the link:

<p>
	<strong>bo</strong><a href="http://example.com"><strong>ld</strong> and lin</a>k</p>

But that's is a different thing that's not related to this ticket.

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