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

A margin option is added to the Embeded preview block #39384

Merged
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Add a block that displays content pulled from other sites, like Twitter or YouTu

- **Name:** core/embed
- **Category:** embed
- **Supports:** align
- **Supports:** align, spacing (margin)
- **Attributes:** allowResponsive, caption, previewable, providerNameSlug, responsive, type, url

## File
Expand Down
5 changes: 4 additions & 1 deletion packages/block-library/src/embed/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
}
},
"supports": {
"align": true
"align": true,
"spacing": {
"margin": true
}
},
"editorStyle": "wp-block-embed-editor",
"style": "wp-block-embed"
Expand Down