Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

i/6053b: Link selection attributes should be cleared after inserting a link via Model#insertContent() for better UX #261

Merged
merged 4 commits into from
Apr 21, 2020

Conversation

oleq
Copy link
Member

@oleq oleq commented Apr 20, 2020

Suggested merge commit message (convention)

Fix: Link selection attributes should be cleared after inserting a link via Model#insertContent() for better UX. Closes ckeditor/ckeditor5#6053.


Additional information

A new approach to the problem (the old one) after a F2F talk with @Reinmar. Let's take a look at it and discuss it here.

FYI: I smuggled some async/await refactoring to the LinkEditing tests just like @jodator suggested in the old PR.

@oleq oleq requested a review from jodator April 20, 2020 15:47
@coveralls
Copy link

coveralls commented Apr 20, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 7e97d53 on i/6053b into ee88aa1 on master.

Copy link
Contributor

@jodator jodator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍.

tests/manual/tickets/6053/1.md Outdated Show resolved Hide resolved
@jodator
Copy link
Contributor

jodator commented Apr 21, 2020

I see that listening on insert content works nice. AFAICS the logic is pretty the same and straightforward - no fixing after selection change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection could be outside of the link after pasting
3 participants