-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Button Block: Switching between Gutenberg plugin and Core causes invalid content #21828
Comments
Can you give the exact markup used in the previous version as I'm not able to reproduce with any markup, Thanks |
@youknowriad I also saw this with Gutenberg 7.9.1 doing the following, but saw similar issues
I also saw this happen for some headings and paragraphs. With the latest changes to master, it appears to occur when a custom color is used. Test case:
|
Oh sorry I misread the issue initially, and yeah the invalidation here is totally expected since an old block (Core) can't know about the updated markup of the same block (Plugin). That's downgrading and it's not supported for blocks. I'd say there's nothing we can do here and that's expected behavior. |
Switching between the Gutenberg plugin and Core causes invalid content in button blocks.
To reproduce
We need to ensure backwards compatibility, because previously button blocks were wrapped in
p
tags and now they are not. This causes the color and alignment options to no longer work properly in the editor. I tested this in both Twenty Twenty and Twenty Nineteen.Screenshots:
Buttons added when GB plugin was active, but is now inactive.
Versions:
Environment:
Related Issues:
The text was updated successfully, but these errors were encountered: