Skip to content

Pasting a text with text styles applied generates a exception #3034

@fluiddot

Description

@fluiddot

Describe the bug
Pasting a text with text styles (bold or italic) applied generates a JS exception. However pasting regular text works ok, looks like only happens when the text has any text style.

This breakage is coming in the following Gutenberg version bump:
#3032
This breakage is already in develop because Gutenberg submodule was updated in #2953

To Reproduce
Steps to reproduce the behavior:

  1. Add a paragraph block
  2. Write some words and set some of them as bold or italic
  3. Select all the text and copy it
  4. Paste it in the same paragraph or another one
  5. See TypeError: undefined error

Expected behavior
Copy and pasting text with text styles should work.

Screenshots

copy-paste-error-android.mp4

Smartphone (please complete the following information):

  • Device: Pixel 4 (Emulator)
  • OS: Android 11
  • Version: alpha-268

Additional context
Only happens on Android.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions