Skip to content

[5.4.0] Text selection not retained when inserting entry links #558

@mmikkel

Description

@mmikkel

Description

When creating multiple entry links in succession, CKEditor will fail to retain selected text after the first link has been created – i.e. instead of using the selected text as the link's "displayed text", it will insert successive entry links before the selected text (using the linked entry's title as the link text, instead of the selected text).

This only happens with entry links; URL links work as expected.

I'm unable to reproduce this behaviour using CKEditor 5.3.1, so this seems to be something introduced in 5.4.0.

CleanShot.2026-03-31.at.13.17.25.mp4

Steps to reproduce

  1. Select some text in a CKEditor field, click the link button and create an entry link.
  2. Without saving changes or reloading the page; do it a second time.

Additional info

  • Craft version: 5.9.18
  • PHP version:
  • Database driver & version:
  • Plugins & versions: CKEditor 5.4.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions