When [Enter] key is used to replace a link, the previous link's attributes are not removed

Created on 26 April 2024, 8 months ago
Updated 22 May 2024, 7 months ago

Problem/motivation

Ckeditor5 link url form submit on enter keypress or non-autocomplete selection does not remove existing data-* attributes.

This is a problem when changing a link from one that should be linkit url converted to a link that should not.

Steps to reproduce

1. Create a link from an autocomplete suggestion by mouse clicking on it.
View source to see that data-* attributes were set.

2. Edit the link, change the link by typing in a new value such as "google.com" and keypress enter.
View source to see that the href is now "google.com" but data-* attributes for previous entity still exists.

πŸ› Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States drpldrp San Francisco, CA

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

Comments & Activities

Production build 0.71.5 2024