Insert node title instead of # when no link text is selected

Created on 14 November 2016, about 8 years ago
Updated 21 May 2024, 6 months ago

This is no longer the behaviour on 8.5, though #1459832: Shouldn't CKEditor display a node title instead of a node URL ? β†’ fixed it for 7.x. Selecting an entity via Linkit produces inserts # if no link text is selected.

It would be very nice to insert the entity label as seems to have been fixed before.
It would be even nicer if this was not static text that could become outdated if the title changed, but instead something more resilient.

I tried to have a go at fixing it, but I can't even see where the # comes from; there's nothing in 8.x-5.x that seems to offer an easy route to influence what effect Linkit has on the ckeditor text..

✨ Feature request
Status

Closed: works as designed

Version

5.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

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

    For some time now, as indicated by the Linkit project page β†’ , the 8.x-5.x branch of Linkit is not undergoing active development. It is also only compatible with unsupported versions of Drupal core (Drupal 8 and Drupal 9).

    To help the maintainers of the Linkit module better steward tasks under active development, I'm going to mark this issue as closed. Sites using 8.x-5.x can certainly continue to do so, but should make plans for updating to the latest supported version of Linkit.

    Even better: Drupal core will soon provide link autocomplete suggestions in CKEditor similar to what this module does. Sites using or considering using Linkit should follow this core issue ✨ Drastically improve the linking experience in CKEditor 5 Needs work to evaluate whether they can use the core solution instead of Linkit. See feature differences below to compare what Linkit includes that will not initially be in Drupal core.

    If this issue relates to a problem or feature request that is applicable to the latest supported version of Linkit, please create a new issue, associated with that branch, describing the bug or enhancement.

    For participation and information in Linkit's roadmap, see 🌱 LinkIt Release Roadmap and Issue Prioritization Active .

    Thanks, community, for you collaboration and consideration!

  • πŸ‡³πŸ‡ΏNew Zealand klidifia

    Previous approaches no longer work. I updated this issue with some code that will use the entity title (already obtained via Linkit) as the default link text for a brand new inserted link without a selection range: ✨ Display node title (a text) in by default when creating link in ckeditor5 Closed: duplicate

Production build 0.71.5 2024