-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 modifies/removes spacing #17208
Comments
I spent some time to debug on this. This looks like more of an OS level issue. Please see below the console logs of the paste handler.
Notice in the above log 👆that there's no space between the point where
I went ahead and checked this in Classic Editor. If I paste the same content into TinyMCE, the spaces are removed there as well. Not sure if we can do anything about this. 🤷♂ |
I was also able to reproduce this in the block editor. I performed some additional testing in a standalone HTML page with a See this codepen for the content I was testing with - https://codepen.io/aprea/pen/LYPOavx When pasted into a |
I'm unable to reproduce this on |
@peterwilsoncc Are you still experiencing this issue with Gutenberg 7.0? |
@ellatrix Sorry it's take a few days. No, I can't reproduce this anymore so will close the issue off. |
Describe the bug
Copying a paragraph from HTML can drop spaces around
strong
andem
tags and covert spaces to non-breaking spaces.-- online source https://www.abc.net.au/news/2019-08-16/trump-could-lose-2020-election-if-the-economy-tanks/11420022
Note:
To reproduce
Steps to reproduce the behavior:
Expected behavior
Copy and paste should not affect markup
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: