I would like to modify text that is being converted to a link within CKEditor, using the Linkit plugin. Eg. When linking to a Media Document, append the file type and size.
I am using
hook_form_editor_link_dialog_alter in order to modify the dialog form and capture and populate additional attributes on the resulting
a element. But there does not appear to be a field for modifying the text.
Drupal 9.5.9, CKEditor 4, Linkit 6-rc1