Creating multiple link, the Title field is REUSED

Created on 7 August 2025, 10 days ago

Problem/motivation

During some tests, I've noticed that if we create multiple links by directly clicking on the Link button, the Title field maintains the previous value.

This happens ONLY if you do not select a text to add a link. I don't know how frequently a user would add multiple links without selecting text inside the content, even so, I decided to report it, in case this happens to other people.

Drupal 10.5.1
Linkit 7.0.8

Steps to reproduce

  1. Go to any node with a CKEditor
  2. Click on Link button
  3. Fill the title field
  4. Fill the Link URL (both internal or external link)
  5. Click on Insert
  6. Now hit Enter and click again on Link button from CKEditor
  7. Linkit will have the Title field already filled with the preview value from the other link

This does not happen if you add multiple links by selecting different texts inside the content.

πŸ› Bug report
Status

Active

Version

7.1

Component

Code

Created by

πŸ‡§πŸ‡·Brazil giancarlorosa

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

Comments & Activities

  • Issue created by @giancarlorosa
  • πŸ‡¦πŸ‡ΊAustralia jannakha Brisbane!

    which version of https://www.drupal.org/project/editor_advanced_link β†’ are you using?
    it requires a proper CKEditor 45 refactor for D10.5+

  • πŸ‡§πŸ‡·Brazil giancarlorosa

    I'm using the version 2.3.1.

  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    Thanks for reporting this! If I'm interpreting the steps to reproduce correctly, I think this may be by design in CKEditor? Specifically, from step 6 above, "Now hit Enter and click again on Link button from CKEditor," upon pressing "Enter" the CKEditor selection will remain on the link that was just created. Immediately pressing the "Link button" from the CKEditor toolbar will, by design, open the editing interface for that link. This can be seen visually because after pressing enter, CKEditor retains the ck-link_selected class on the link and it has a light highlight color.

    This behavior can be reproduced using Editor Advanced Link's latest commit to 2.3.x, and without Linkit being enabled.

    If I'm misunderstanding the steps to reproduce, please clarify. Otherwise, I think this can be closed as "Works as designed" or, alternatively, transferred to the Editor Advanced Link module's issue queue.

Production build 0.71.5 2024