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 old content creates extra unnecessary blocks. #2147

Closed
hedgefield opened this issue Aug 2, 2017 · 6 comments
Closed

Pasting old content creates extra unnecessary blocks. #2147

hedgefield opened this issue Aug 2, 2017 · 6 comments
Assignees
Labels
[Feature] Paste [Type] Bug An existing feature does not function as intended

Comments

@hedgefield
Copy link

Issue Overview

Pasting content from a post written with the current editor into gutenberg creates some extra blocks. Result:
_untitled____gutenberg_ _wordpress_develop_ _wordpress

Steps to Reproduce (for bugs)

  1. Open a simple post written with the current editor.
  2. Select all, copy.
  3. Start a new post via the gutenberg admin menu.
  4. Paste into the first/default empty text block.
  5. Note that the conversion to blocks happens correctly, but the original placeholder block is still there, as well as an empty block in between that and the pasted content, which gets selected?

version 0.6.0
vagrant dev env
chrome on mac

Expected Behavior

For the old text to be reformatted into blocks as best it can and the placeholder to be removed/replaced.

There is no reason, text-wise, why it should deal with this strangely. Opening the original post in the text view shows no strange markup - none at all, in fact. Literally the first character in there is the first character of the first sentence.

@ellatrix ellatrix self-assigned this Aug 11, 2017
@jasmussen jasmussen added [Feature] Paste [Type] Bug An existing feature does not function as intended labels Aug 18, 2017
@ellatrix
Copy link
Member

@hedgefield Does this still happen in current master now?

@hedgefield
Copy link
Author

hedgefield commented Aug 23, 2017

Yes it does, running 0.9.0. Pasting the copied Visual view content does this. Pasting the copied Text view content doesn't (but that also doesn't register the html tags and dumps it all in a single paragraph).

@ellatrix
Copy link
Member

Okay, I mean master here with the latest commits. It will be in 0.10.0 then.

@hedgefield
Copy link
Author

Okay cool, will test with the next release.

@ellatrix
Copy link
Member

@hedgefield How's the latest release? :)

@hedgefield
Copy link
Author

Fixed! :)

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

3 participants