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

Pasting inside of Paragraph Block breaks attributes #5059

Closed
davidsword opened this issue Feb 14, 2018 · 2 comments
Closed

Pasting inside of Paragraph Block breaks attributes #5059

davidsword opened this issue Feb 14, 2018 · 2 comments
Labels
[Feature] Paste [Type] Bug An existing feature does not function as intended

Comments

@davidsword
Copy link
Contributor

davidsword commented Feb 14, 2018

Safari 11, wp 4.9.4, gb 2.1.0, gutenberg theme. Happens when no other plugins active.

Pasting (normal and shift+opt+cmd+v sanitized pastes too) inside of the Paragraph block after things like align:full and background color have been set, break the align/bg attributes.

  1. Add Paragraph block
  2. Set align to full width
  3. Set bg to light gray
  4. Leave the block, to another, then return
  5. Paste in text

I've had it not happen on a clean page when it's the only block. In my testing, when there's more than one block it always happens.

a

And another on a clean page:

take2

@mtias mtias added [Type] Bug An existing feature does not function as intended [Feature] Paste labels Mar 6, 2018
@ellatrix
Copy link
Member

I think the solution here is the same as #6132.

@designsimply
Copy link
Member

I tried testing without the step to set the block alignment (because I don't see it any more), and I wasn't able to reproduce the problem.

Video: 39s
Seen at http://alittletestblog.com/wp-admin/post.php?post=14031&action=edit running WordPress 4.9.7 and Gutenberg 3.3.0 using Firefox 61.0.1 on macOS 10.13.6.

@davidsword if you're still having trouble with this, could you reply and let me know what versions you're using now and also which theme you're testing with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Paste [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants