Opened 9 years ago

Closed 7 years ago

#4744 closed Bug (fixed)

Editing link with empty href causes a new link to be created and inserted into the existing anchor

Reported by: Russ Tennant Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0.1
Keywords: Cc:

Description

Editing link with empty href causes a new link to be created and inserted into the existing anchor

Start with the following source.

<p><a href=""><span>Sample Text</span></a></p>
  • Edit the link.
  • Enter a URL.
  • Click OK.

Result:

<p><a href=""><span>Samp<a href="http://google.com">http://google.com</a>le Text</span></a></p>

Change History (4)

comment:1 Changed 9 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added

comment:2 Changed 9 years ago by Simon

Version: 3.0.1

With version 3.1, I use template to create custom links (a). Template html :

<a class="customclass" href="" target="_blank">File title</a>

Add template, use edit link tool, edit « url » field and then press OK. href link attribute stays empty.

Solution for now : in the link template html code, add something in the href attribute.

<a class="customclass" href="changeme" target="_blank">File title</a>

comment:3 Changed 9 years ago by Alfonso Martínez de Lizarrondo

Version: 3.0.1

comment:4 Changed 7 years ago by Jakub Ś

Resolution: fixed
Status: confirmedclosed

This particular problem is no longer reproducible in latest CKEditor 3.6.4

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