-
Notifications
You must be signed in to change notification settings - Fork 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
Gutenberg: Spacer block (attribute pruning) #27645
Comments
After reloading the page I discovered the problem - it appears as though Gutenberg is pruning attributes from the block on save. Invalid reloaded block <!-- wp:spacer {"height":242} -->
<div style="height:242px;" class="wp-block-spacer"></div>
<!-- /wp:spacer --> Valid new block <!-- wp:spacer {"height":63} -->
<div style="height:63px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --> Tested in a separate Gutenberg/WordPress environment and the save/load loop was fine without breaking. I tested with Gutenberg from Confirmed that the database has the malformed content. Looking for some filter on save. |
This is likely very similar to core's issue of filtering a saving post's HTML when a user isn't admin (
The main reasons for some input to be filtered:
The proper fix is to be done in core WP (kses). A core ticket for CSS's |
@dmsnell just a note that I'm seeing a similar issue with Audio block after uploading and saving (tested with business plan because audio uploads aren't included in free). |
after the merge of D19247-code the spacer block is working |
See #27294
As the most used block ;) let's make sure that we can insert this and it's serialized appropriately in post content
Status
Awaiting fix in core
Awaiting fix in D19247-code
The text was updated successfully, but these errors were encountered: