-
Notifications
You must be signed in to change notification settings - Fork 57
Crash on paste caused by Gutenberg #19097 #1688
Copy link
Copy link
Closed
Labels
Web breakageCaused by incompatible changes on Gutenberg webCaused by incompatible changes on Gutenberg web[Type] Crash[Type] RegressionExisting functionality that got brokenExisting functionality that got broken
Description
Describe the bug
WordPress/gutenberg#19097 introduced a regression where pasting rich-text in a paragraph causes a crash with: Cannot read property 'textAlign' of undefined at https://github.com/WordPress/gutenberg/blob/662c38e45c99f4d9232791d409bbce64fce4a0de/packages/block-library/src/paragraph/transforms.js#L26
Assumes WordPress/gutenberg#19190 being already merged first.
To Reproduce
Steps to reproduce the behavior:
- Start with initial-html.js having only this:
<!-- wp:paragraph -->
<p><strong>Hello</strong> paste</p>
<!-- /wp:paragraph -->
- Run the demo app
- Go into the paragraph, select all text and "Copy" it
- Add a new paragraph block from the Inserter and focus it
- Long-tap and paste
- 💥
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Web breakageCaused by incompatible changes on Gutenberg webCaused by incompatible changes on Gutenberg web[Type] Crash[Type] RegressionExisting functionality that got brokenExisting functionality that got broken