Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some pasted content crashes editor #2008

Closed
aduth opened this issue Jul 25, 2017 · 1 comment
Closed

Some pasted content crashes editor #2008

aduth opened this issue Jul 25, 2017 · 1 comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@aduth
Copy link
Member

aduth commented Jul 25, 2017

Steps to Reproduce

  1. Copy a couple paragraphs of text from http://lipsum.com/feed/html
  2. Paste into a new Gutenberg > New Post post text block

Expected Behavior

Content is pasted.

Current Behavior

Editor crashes.

Uncaught TypeError: text.replace is not a function

(Note this is a core file, but the same error does not occur in the current post editor)

Possible Solution

It's not yet clear to me whether there are hidden characters in the text that are causing issues. Pasting it into a plain text editor, then re-copying, then pasting into editor works as expected.

@aduth aduth added [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended labels Jul 25, 2017
@nb
Copy link
Member

nb commented Jul 26, 2017

I hit this one, too – text is an array of React elements, instead of the expected string.

Tug pushed a commit that referenced this issue Mar 19, 2020
…o-settings-separators

Refine block settings' separator margin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants