Site Editor: remove Convert to Classic Block recovery option since it produces an error #48991
Labels
[Block] Classic
Affects the Classic Editor Block
[Feature] Paste
[Type] Regression
Related to a regression in the latest release
Description
In the Site Editor I loaded a template that contained a block which contained unexpected or invalid content, therefore displayed the Attempt Block Recovery button and more options menu with Resolve, Convert to HTML and Convert to Classic Block.
Choosing Convert to Classic Block causes Uncaught Errors in the console.
Uncaught Error: Block type 'core/freeform' is not registered.
Proposed fix: The Convert to Classic Block menu item should not be offered in the Site Editor as the block is no longer available.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
In my scenario I was also using the the oik-blocks plugin to provide the Block info block that failed.
The block fails validation since it contains an
<svg>
tag with aviewbox
attribute that Gutenberg wants to convert toviewBox
.I didn't spend much time looking for an existing bug since it's only recently that the code was implemented to disable the Classic Block in the Site Editor.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: