How to add links?

Created on 5 February 2024, 10 months ago
Updated 17 September 2024, 2 months ago

Hi there, it's my first time using this module and I just want to make sure I have it set up properly. Using 3.x with CKE5.

It appears that the workflow is to:

(1) add a destination anchor in the text, then
(2) select the navigation text, click the standard 'link' icon, and manually enter '#myAnchor' as the link.

Is this correct? I guess I'm wondering if there's a way in step 2 to choose from a list of anchors on the page, rather than typing it manually. The module page says the module includes "Dialog to insert links and anchors with some properties. Context menu option to edit or remove links and anchors. Ability to insert a link with the URL using multiple protocols, including an external file if a file manager is integrated." I can add the anchors no problem but I don't see how to work with links at all.

Sorry if I'm missing something obvious!

💬 Support request
Status

Active

Version

3.0

Component

Documentation

Created by

🇨🇦Canada mrogers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mrogers
  • 🇮🇳India ravi kant Jaipur

    1. After install and enable module, you need to go Administration -> Configuration -> Content authoring -> Text formats and editors

    2. Drage the "Anchor link" icon to Active toolbar.

  • 🇨🇦Canada mrogers

    Thanks, but after the button is added to the editor and an anchor is added to the text, how should the link to the anchor be added?

    The documentation states that there is "Dialog to insert links and anchors with some properties. Context menu option to edit or remove links and anchors..."

    I can't see how to access the bolded items above.

  • 🇮🇳India ravi kant Jaipur

    Are you getting any error on console or in Recent log messages?

  • 🇵🇱Poland Pozi

    Hello, as @mrogers said, home page said there's an interactive modal for getting the list of created acnhors, like in CKEditor 4 plugin, you can see it in this presentation video: https://www.youtube.com/watch?v=XFesGHEeKTQ
    Right now after creating an anchor "anchor_name" when i want to add link to it i have to manually type in link "#anchor_name", there's no list of anchors from which i can pick one in link creation modal. So we both wondering if we miss something during installation?

  • 🇪🇸Spain mtoscano

    I have the same issue and nothing to report from the Console of the Recent log messages

  • 🇩🇪Germany hexabinaer Berlin, Germany

    A client of ours reported the same issue und now they want a reroll to CKEditor 4 :-D

    Admittedly the "missing link" in this evolution is rather that the regular CKEditor link widget is not prepared for anchor links (maybe allowing to enter anchor names but then not allowing to edit the link).

    In case patching that widget would be too effortful: It should be reasonable to introduce a complimentare extra button/widget just for adding anchor links. The icon could combine chain link + flag.

  • 🇮🇹Italy giordy

    I'm having problems with the form too.
    As per the image, I can insert various things but not the anchor and it does not accept #anchor.
    I don't know how to do it because I have many dozens of links to insert.

  • 🇺🇸United States justcaldwell Austin, Texas

    Just wanted to chime in to say that the 3.0 branch of anchor_links (specifically for CKEditor 5) only provides a UI for creating anchors — i.e. <a> elements with an id attribute.

    Unlike previous branches that were for CKEditor 4, there is no UI for linking to anchors on the page, and there's no current indication that feature will be added to CKEditor plugin used by the 3.0 branch.

    Editors should create links that target the anchors as described in step 2 of the issue summary.

    (2) select the navigation text, click the standard 'link' icon, and manually enter '#myAnchor' as the link.

    It's worth noting that the CKEditor 5 maintainers have started work on a native "Bookmark" plugin. Part 1 of that work is described in this issue on github. As noted there, and in this comment on a related issue, part 1 will add bookmark creation/editing UI — the "bookmark linking experience" will occur in a subsequent development effort.

    So it seems like the native plugin will provide that functionality at some point.

Production build 0.71.5 2024