compatibility with linkit entity title default

Created on 23 May 2025, 16 days ago

Problem/Motivation

There is some work here ( https://www.drupal.org/project/linkit/issues/3388565 Display node title (a text) in by default when creating link in ckeditor5 Closed: duplicate ) towards allowing the linkit module to default link text to entity titles instead of entity paths.

As outlined in this comment ( https://www.drupal.org/project/linkit/issues/3388565#comment-15609354 Display node title (a text) in by default when creating link in ckeditor5 Closed: duplicate ), it isn't compatible with editor_advanced_link.

Steps to reproduce

Using the linkit patch from #3388565 while also having editor_advanced_link enabled, the inserted link does not default to the entity title as desired.

Proposed resolution

The ckeditor plugins in linkit and editor_advanced_link have some duplicate code. See function _addExtraAttributeOnLinkCommandExecute, which is based on linkit's function _addExtraAttributesOnLinkCommandExecute.

Bring the editor_advanced_link ckeditor plugin in-line reflect the changes made to the above linkit function changes from #3388565

Feature request
Status

Active

Version

2.2

Component

Code

Created by

🇦🇺Australia drasgardian

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024