Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would be nice if we can add a button in the Link Dialog or a special link button in the editor, such that we can then choose a file in IMCE to be linked to.
e.g like in D7: https://www.youtube.com/watch?v=4_YR9_nPFXA
Comments
Comment #2
RKopacz CreditAttribution: RKopacz commentedPointing to my comment here. Would be nice to see this. Is there an alternative file browser for the link feature in the text editor?
Comment #3
ufku CreditAttribution: ufku commentedAdded a link button that can insert multiple file links at a time.
Comment #4
RKopacz CreditAttribution: RKopacz commentedThank you @ufku, has that been committed to dev? I am using the most recent release for production.
Comment #5
Jon Betts CreditAttribution: Jon Betts commentedThanks! I'm able to see the new link icon in the Text Editor configuration screen, but it isn't showing up in the content type edit forms. I've cleared cache. Working with latest dev 2/29 8.x-1.x-dev.
Comment #6
RKopacz CreditAttribution: RKopacz commentedI'm definitely getting the new link button for the toolbar, and it works, but I noticed that if I select text in the body textarea, and then proceed to create the link, the text I've selected is replaced by the name of the file. In D7, this same operation would preserve the text in the text area that the editor wished to be the link.
Is there a way to configure the D8 mechanism to perform the D7 operation without having to edit HTML?
Thanks for adding this browser capability!
Comment #8
ufku CreditAttribution: ufku commentedThe link button now detects editor selection.
Comment #9
RKopacz CreditAttribution: RKopacz commentedThanks @ufku !