Review 12.4 Merged

81191[BUGFIX] Prevent empty links after updating a link via link-browser

Benjamin Franzke CR +2 V +2 Easy +16 −3 updated 09/25/23, 08:47

Commit message

Remove selection link attributes after updating an existing link
that has been selected with a collapsed selection (that is when
the cursor is placed anywhere inside the link).

We missed to cleanup all our (and ckeditor's) link related
attributes after creating a collapsed selection ("cursor placed after
the link") after a link was updated.

Adapt to upstream logic to cleanup link attributes as seen in
https://github.com/ckeditor/ckeditor5/blob/v39.0.2/packages/ckeditor5-link/src/linkcommand.ts#L206-L208
The logic is slightly modified to use the same generic approach in
https://github.com/ckeditor/ckeditor5/blob/v39.0.2/packages/ckeditor5-link/src/linkediting.ts#L697
included our workaround from #101429

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Benjamin Franzke uploaded patch set 1 09/25/23, 07:44

  2. core-ci voted on patch set 1 V +1 09/25/23, 07:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47135

  3. Benjamin Franzke commented on patch set 1 V +2 CR +2 09/25/23, 08:47

    This change is ready for review.
  4. Benjamin Franzke merged patch set 2 09/25/23, 08:47