Opened 12 years ago

Last modified 12 years ago

#8982 confirmed New Feature

Anchor options in Link dialog uses only references to 'a' elements

Reported by: Alfonso Martínez de Lizarrondo Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: HasPatch Cc:


Reported here:

The link dialog provides an option to link by Id, but it provides only the option to link to anchor elements, not other elements with an id attribute although those links will work in any browser.

The proposed patch provides a simple solution for modern browsers that support querySelectorAll. If someone is willing, it shouldn't be hard to write an "else" code path that does the scanning for the older browsers.

Attachments (1)

8982.patch (740 bytes) - added by Alfonso Martínez de Lizarrondo 12 years ago.
Proposed patch

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Alfonso Martínez de Lizarrondo

Attachment: 8982.patch added

Proposed patch

comment:1 Changed 12 years ago by Jakub Ś

Keywords: HasPatch added
Status: newconfirmed
Type: BugNew Feature
Version: 3.0
  1. "querySelectorAll" is not supported in IE6 and IE7.
  2. I have found some articles on the net saying that it may be slow. Well slow comparing to get ElementsByTagName method but maybe it matters to some users:

Sure that we could implement it but I'm afraid that some users will start complaining that this does not work inIE6 and IE7.

I'm changing this to feature request.

comment:2 Changed 12 years ago by Garret Wilson

Has this been fixed in CKEditor 4?

The "name" attribute for anchors (<a name="...") is now deprecated as of HTML5. If CKEditor does not allow me to link fragments to element ids, it prevents me from creating documents compliant with the latest specifications.

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