Skip to content

[Bug]: Editor render breakage when cutting and pasting into the title on wpcom #56777

Open

Description

Quick summary

Cutting and pasting text from and to the title of a new post breaks the editors rendering.

Confirmed WordPress.com only, FF only.

Peek.2021-10-05.17-45.mp4

Steps to reproduce

  1. Create a new post
  2. Type out a title "test title and stuff"
  3. Select "and stuff"
  4. Cut the text with ctrl/cmd+x
  5. Hit backspace
  6. Move the cursor to the start of the title (hit home key, but this doesn't seem to matter)
  7. Paste the text ctrl/cmd+v

Undo to get back to safety.

What you expected to happen

Screenshot(35)

What actually happened

Screenshot(34)

Context

Writing a p2 post

Browser

Mozilla Firefox

Simple/Atomic

Simple

Other notes

Doesn't seem to be any errors in the console.

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, easy to implement

Workaround details

Don't use copy and paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions