You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Selecting all of the text in a paragraph block and then pasting content from Google Docs results in the pasted content being appended rather than the pasted content replacing the paragraph block.
To Reproduce
Copy text into your clipboard from a Google Docs document
Add a new post
Type in some text to create a paragraph block
Press Cmd+A to select all of the text in the block
Press Cmd+V to paste the copied content
The pasted content appears after the paragraph block
Expected behavior
The pasted content should replace the paragraph block.
Screenshots
Desktop:
OS: macOS 10.13.6
Browser: Latest Chrome & Safari
The text was updated successfully, but these errors were encountered:
I tested with current master @ c446d069f and found that the problem only happens when the paste from a docs.google.com document is multiline as noted by @kriskarkoski in #12443.
Tested with WordPress 4.9.8 and Gutenberg 4.5.1 master @ c446d069f using Chrome 70.0.3538.110 and Firefox 63.0.3 on macOS 10.13.6.
@designsimply Should we update the title to be more broad like the closed issue? I experienced it with Simplenote and Pages, so it's not limited to just Google Docs.
designsimply
changed the title
Selecting all text in a paragraph and pasting from Google Docs doesn't replace the text
Selecting all text in a paragraph and pasting from elsewhere doesn't replace the text
Mar 13, 2019
Tested with copying text from Lorem Ipsum website and had the same issue where it's didn't replace the selected blocks but pasted the blocks (paragraph blocks) below the selected blocks.
Wordpress Version: 5.2.3
Browser: Chrome Version 77.0.3865.90 (Official Build) (64-bit)
Describe the bug
Selecting all of the text in a paragraph block and then pasting content from Google Docs results in the pasted content being appended rather than the pasted content replacing the paragraph block.
To Reproduce
Expected behavior
The pasted content should replace the paragraph block.
Screenshots
Desktop:
The text was updated successfully, but these errors were encountered: