Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for pasting plain text inside of a link breaking a link #8272

Merged
merged 9 commits into from
Dec 2, 2020
Merged

Conversation

mlewand
Copy link
Contributor

@mlewand mlewand commented Oct 16, 2020

Suggested merge commit message (convention)

Fix (clipboard): Pasting plain text inside of a link or restricted editing editable region will no longer break them. Closes #8158.

Tests (link): Added tests for pasting plain text over the link.


Additional information

…into a link and won't break the link itself.
…l link handler.

Internal (clipboard): Set `event.asPlainText` flag of inputTransformation event in case plain text is detected in Clipboard plugin.

This second handling should actually be moved to the PastePlainText plugin.
@mlewand
Copy link
Contributor Author

mlewand commented Oct 19, 2020

@ckeditor/qa-team can I ask you to test the thing?


Some hints regarding things to test:

  • pasting over a link (where you have whole link selected and replace it with different text, should remove the link and paste the text) - should be tested in depth as the logic was rewritten
  • pasting plain text in mentions
  • pasting plain text in restricted editing zones

@Mgsy

This comment has been minimized.

@Mgsy

This comment has been minimized.

@niegowski
Copy link
Contributor

@ckeditor/qa-team could you test it one more time? The logic for this PR was once more time rewritten.

@niegowski
Copy link
Contributor

I just noticed that some tests in the table package started failing. I'm checking it.

@niegowski
Copy link
Contributor

I just noticed that some tests in the table package started failing. I'm checking it.

It's fixed now.

@Mgsy
Copy link
Member

Mgsy commented Dec 2, 2020

Things look good 👍 The previous issues have been fixed and I haven't found anything new.

@Reinmar Reinmar merged commit 8d376fd into master Dec 2, 2020
@Reinmar Reinmar deleted the i/8158 branch December 2, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pasting plain text on link breaks link
4 participants