Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

Fixes a red sceen when pasting. - #638

Merged
diegoreymendez merged 3 commits into
developfrom
issue/624-pasting-into-selected-text
Feb 22, 2019
Merged

diegoreymendez merged 3 commits into
developfrom
issue/624-pasting-into-selected-text

Conversation

@diegoreymendez

@diegoreymendez diegoreymendez commented Feb 21, 2019 •

Copy link
Copy Markdown
Contributor

Description:

Fixes a red screen that would come up when trying to paste plain text at the end of a block or when text was selected.

Dependencies:

Gutenberg PR: WordPress/gutenberg#14011

Known issues:

The text selection after pasting is not correct, but this is not a problem introduced by this PR.

Testing:

Test 1:

  1. Copy some plain text.
  2. Select some text from a block.
  3. Paste

Make sure you don't get a red screen.

Test 2:

  1. Copy some plain text.
  2. Place the caret at the end of a paragraph or heading block.
  3. Paste

Make sure you don't get a red screen.

@diegoreymendez diegoreymendez added the [Type] Bug Something isn't working label Feb 21, 2019
@diegoreymendez diegoreymendez added this to the Beta milestone Feb 21, 2019
@diegoreymendez diegoreymendez self-assigned this Feb 21, 2019

@etoledom etoledom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@diegoreymendez diegoreymendez changed the title Fixes an red sceen when pasting. Fixes a red sceen when pasting. Feb 21, 2019
@diegoreymendez

Copy link
Copy Markdown
Contributor Author

Thanks @etoledom !

@diegoreymendez
diegoreymendez merged commit 0c6fefb into develop Feb 22, 2019
@diegoreymendez
diegoreymendez deleted the issue/624-pasting-into-selected-text branch February 22, 2019 04:09
@mkevins

mkevins commented Feb 22, 2019 •

Copy link
Copy Markdown
Contributor

Thanks @diegoreymendez. I tried this on Android, and it fixes the issue. 👍

@mkevins mkevins mentioned this pull request Feb 24, 2019
12 of 20 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

[Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants