-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Copying text into first paragraph causes blank Paragraph Block to appear above text #7973
Comments
I have confirmed this is happening in |
Tested and confirmed that an empty paragraph block remains after I copy text from elsewhere that contains leading line breaks. I found that I was able to copy some text over without that happening if I only select a portion of text that does not include the beginning of a line. Video: 1m21s |
I copied text from pdf but when I switched to the classic editor, there were double spacing (&npsb;) after each paragraph. This is awful for a document of 1500 words. |
@matto15 in your case it sounds like whatever was used to create the pdf had some special formatting to hide double spacing ( ), and if the underlying code had empty paragraphs included as double spacing, it makes sense for an editor to honor that. I would be interested to learn more about what was used to create that pdf (if you know) or to look at it directly (if it can be shared), and if you're interested in talking about it more too, please add a new post at https://wordpress.org/support/plugin/gutenberg/ |
Closing this so we can consolidate in #7616 which addresses the underlying problem here which is that when you paste content with leading white space, such as a line break, it results in an empty block that shouldn't be there. |
Describe the bug
I created a new page and pasted some (unformatted) text content into the first Paragraph block after the title. Instead of actually pasting the text into the Paragraph Block though, it created a whole new Paragraph Block and pasted the text into that instead, leaving me with a blank Paragraph Block.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When I paste plain text into a Paragraph Block, it should paste into the Block where my cursor is, not create a brand new Block, leaving me with an empty Block.
macOS Sierra 10.12.6 (16G1510)
Firefox Quantum 61.0.1 (64-bit)
Gutenberg 3.2.0
The text was updated successfully, but these errors were encountered: