Opened 14 years ago

Last modified 10 years ago

#8097 confirmed Bug

URL is applied incorrectly when the selection contains an anchor

Reported by: Teresa Monahan Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.0
Keywords: IBM Cc: Damian, Satya Minnekanti

Description

When we try to apply a new link to a selection that already contains an anchor, the url for the anchor does not get updated with the new url value.

To reproduce this issue:

  1. Open any sample from the nightly build and enter the following in the source tab
    <p>
    	text goes here <a href="http://ckeditor.com">URL goes here</a> More text goes here</p>
    <p>
    
  2. Switch back to wysiwyg mode and select all the text.
  3. Click on the 'Link' icon and specify a url in the link dialog. Click OK.


Expected Result: The new URL value gets applied to the entire text including the anchor node.

Actual Result: The original anchor still has its old url value, while the new url value is applied to the text before and after it.

Change History (4)

comment:1 Changed 14 years ago by Jakub Ś

Status: newconfirmed

Reproducible in all browsers from CKEditor 3.0.

comment:2 Changed 13 years ago by Jakub Ś

Version: 3.6.2 (SVN - trunk)3.0

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

Component: GeneralCore : Styles

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

See also #8368 where an additional case with an empty <strong> is mentioned.

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