When using Linkit to insert a file, is there an option to rename the link? Right now when you use Linkit to insert a file the link has the following name:

/sites/default/files/myfile.pdf

Granted, you can edit the name of that link in the text editor, but it would be nice if there was an option in the Linkit window to have a field where you can type in your own name for the link. Or am I missing a setting somewhere that allows you to do this already?

Comments

betamos’s picture

Assigned: Unassigned » betamos
Status: Active » Fixed

The functionality that we have come to embrace in 7.x-2.x regarding the practical linking part in the editor is that you first select text (or image) and then click the Linkit button to create an A-tag around the selection. This went back and fourth a few times but we finally came to the conclusion that the selection should be made before clicking the link button. However, CKEditor doesn't seem to support disabling the button so it's always enabled there (currently). See #1334526: Disable Linkit button when no selection CKEditor.

Marking as fixed, please change if you're not happy with the answer.

bobthebuilder’s picture

I'll sit on the fence on this one, since I think each way of thinking has valid arguments. However, the organization I'm building a Drupal site for, their current CMS allows them to name the link when they select a file in the file browser before inserting it. So I was simply trying to duplicate what they're use to. But I'm fine telling them to type and select the text first before using the Linkit option.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.