Closed (works as designed)
Project:
Linkit
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2016 at 15:08 UTC
Updated:
21 May 2024 at 02:40 UTC
Jump to comment: Most recent
Comments
Comment #2
jonathanshawComment #3
rajab natshahThis should not return any text to the CKEditor
Comment #4
anonThis issue is based on the fact that the ckeditor module can't handle this.
I know that there is another issue about this for core but I can't find it now.
Comment #5
jonathanshawI believe the issue is #2741945: Allow modules to alter EditorLinkDialog to specify link text. You fixed it, but it needs review.
Comment #6
firewaller commented+1
Comment #7
eelkeblokIsn't this a duplicate of #2926898: Allow customization of default text when text not selected?
Comment #8
eelkeblokComment #9
dbielke1986 commentedComment #10
sakiland commentedPatch #19 from the related core issue #2961554: Display node title by default when creating link with drupalink, allow configuration. fixed this issue.
Comment #11
mark_fullmerFor 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 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 #3345480: LinkIt Release Roadmap and Issue Prioritization.
Thanks, community, for you collaboration and consideration!
Comment #12
klidifia commentedPrevious 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: #3388565: Populate displayedText with entity title when left blank