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

Removing a Classic block in the code editor causes Blocks to be "Deleted or unavailable" in the Visual editor #6371

Closed
1naveengiri opened this issue Apr 24, 2018 · 2 comments
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Bug An existing feature does not function as intended

Comments

@1naveengiri
Copy link

1naveengiri commented Apr 24, 2018

Issue Overview

I switched from visual editor to the code editor, it shows me a message on the already added block
Block has been deleted or is unavailable
although on page refresh the blocks are there and also on post update they also visible in the frontend.

Steps to Reproduce (for bugs)

  1. go to edit post page
  2. Add few blocks to post content with Gutenberg layout.
  3. Change editor from visual to code from the option given beside setting in RHS.
  4. add a new block through code editor.
  5. switch back from code editor to visual editor and you will see the message Block has been deleted or is unavailable

Check the video below

Screenshots / Video

https://drive.google.com/file/d/1DW4tOQ6007Q1hGciyXm5jmQxA1Nj7nR0/view

@danielbachhuber danielbachhuber changed the title Switching between code and visual editor giving message Block has been deleted or is unavailable Removing a Classic block in the code editor causes Blocks to be "Deleted or unavailable" in the Visual editor May 18, 2018
@danielbachhuber danielbachhuber added [Type] Bug An existing feature does not function as intended Framework Issues related to broader framework topics, especially as it relates to javascript labels May 18, 2018
@danielbachhuber danielbachhuber added this to the Merge Proposal: Editor milestone May 18, 2018
@danielbachhuber
Copy link
Member

Thanks for the report, @1naveengiri.

To make your screencast more accessible...

1. Add some blocks to the Gutenberg editor

image

2. Remove the Classic block

image

image

3. "Block is deleted or unavailable" message appears

image

I don't know the underlying implementation well-enough to comment on a solution, but I'm filing against Merge Proposal: Editor because I think this is a significant-enough problem that it should be addressed sooner rather than later. It seems to be similar to #4498

@danielbachhuber danielbachhuber removed this from the Merge Proposal: Editor milestone May 19, 2018
@danielbachhuber
Copy link
Member

Closing in favor of #5754, which is an earlier report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants