Cut & Paste only pastes first paragraph #80757
Labels
[Closed] Resolved
Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR.
[Feature Group] Editor Experience
Features related to Gutenberg integration on WordPress.com.
[Feature] Post/Page Editor
The editor for editing posts and pages.
Needs triage
Ticket needs to be triaged
[Platform] Atomic
[Pri] Normal
Schedule for the next available opportuinity.
[Product] WordPress.com
All features accessible on and related to WordPress.com.
[Status] Core Fix Needed
A fix within the Core WordPress or Gutenberg project is required to resolve this issue.
[Type] Bug
When a feature is broken and / or not performing as intended
Quick summary
When we cut multiple paragraphs of text and then go to paste it, we are experiencing that only the first paragraph pastes within the WordPress editor. Adding that if we cut and paste in to another program then all paragraphs are pasted.
Using the undo arrow within the WordPress editor then either fails to restore the missing paragraphs (if the Gutenberg plugin is _de_activated), or causes the editor to fail with a "The editor has encountered an unexpected error." Error text copied below:
Noting that in either case if we do not save the changes and refresh the editor then the missing text is then restored.
Steps to reproduce
Considerations
The issue has been observed on self-hosted sites and on Atomic with all plugins deactivated except for Jetpack (which was disconnected) and Akismet. I could not reproduce on a simple site. The behavior is sometimes inconsistent if you use keyboard shortcuts to cut & paste or have spotlight enabled, so focus on using right(command) click and having spotlight disabled.
A video recording of the issue:
https://www.loom.com/share/fdaef4278f6a4c969ca03fb328ede169?sid=18aa5b05-283a-47bd-9bd5-7d9adc7def0c
What you expected to happen
Pasting text that has been cut should result in all text being restored.
What actually happened
Cutting and then pasting text only returns the first paragraph, subsequent paragraphs are not pasted.
Impact
All
Available workarounds?
Yes, mentioned above:
Platform (Simple and/or Atomic)
Atomic, Self-hosted
Logs or notes
No response
The text was updated successfully, but these errors were encountered: