Skip to content

Crash on pasting HTML #1950

@etoledom

Description

@etoledom

Describe the bug

The app crashes when pasting content copied from https://automattic.com/work-with-us/

Tested on iOS device (iPhone XS) running last develop (d514b1d). Copying from Safari 13.05 on MacOS 10.15.3.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://automattic.com/work-with-us/
  2. Copy the first part of the page (from Work With Us until the end of the Coming on board paragraph).
  3. Paste on Gutenberg Mobile (on an empty post).
  4. See error Type error: undefined is not an object.

Expected behavior
It should paste the content creating the different blocks as on web (https://mysitefortestingetoledom.wordpress.com/2020/02/24/paste-test-on-web/)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6, Pixel 4]
  • OS: [e.g. iOS 8.1, Android X]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions