Allow customization of default text when text not selected

Created on 28 November 2017, over 6 years ago
Updated 21 May 2024, about 1 month ago

The normal workflow with linkit is to select text and then click on the icon. But you can also click the icon without having selected text. In this case it creates a link with the href as the text of the link.

The default should be the title of the node (if it's a node) and there should be a way to alter the text from other modules.

✨ Feature request
Status

Closed: outdated

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States oknate Greater New York City Area

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-4.x branch of Linkit is not undergoing active development.

    To help the maintainers of the Linkit module better steward tasks under active development, I'm going to mark this issue as closed (outdated). Sites using 8.x-4.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 Christchurch

    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.69.0 2024