Problem/Motivation

Currently the core/missing block is not available to use.

When this block is not enabled, then Gutenberg no longer has a fallback block to use when a block is unrecognized.

This results in unsupported/missing block types being automatically removed, rather than being persisted as raw HTML until the editor decides what to do with it.

Steps to reproduce

1. Add a core/quote block to a piece of content, and save it.
2. Disable the Quote block in the "Gutenberg Experience" setting for that content type.
3. Go back to edit the same piece of content, and the quote will now be deleted without the user being away.

Proposed resolution

Add the core/missing block by default so that sites which disable blocks don't lose existing content referencing it when it's edited.

Remaining tasks

Add MR.

User interface changes

N/A

Issue fork gutenberg-3573075

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codebymikey created an issue. See original summary.

  • codebymikey committed 625c3cf2 on 3.0.x
    fix: #3573075 Add and enable core/missing block
    
    By: codebymikey
    

  • codebymikey committed 8e80ad58 on 8.x-2.x
    fix: #3573075 Add and enable core/missing block
    
    By: codebymikey
    

  • codebymikey committed ab8daaee on 8.x-2.x
    fix: #3573075 Ensure core/missing block is enabled by default
    
    By:...
codebymikey’s picture

Status: Active » Fixed

Addressed and backported to 8.x-2.x.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

codebymikey’s picture

StatusFileSize
new1.88 KB

Attached static patch for 2.x

  • codebymikey committed 625c3cf2 on 4.0.x
    fix: #3573075 Add and enable core/missing block
    
    By: codebymikey
    

  • codebymikey committed 625c3cf2 on feature/wp-scripts-packages-build
    fix: #3573075 Add and enable core/missing block
    
    By: codebymikey
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.