Issue Description
The example code for default attributes for spacing is not correct i think.
attributes: {
style: {
margin: 'value',
padding: {
top: 'value',
}
}
}
This does not work for me, but it worked, if i add spacingto the object:
attributes: {
style: {
spacing: {
margin: 'value',
padding: {
top: 'value',
}
}
}
}
URL of the Page with the Issue
https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing
Section of Page with the issue
Spacing
Suggested Fix
change documentation example to:
attributes: {
style: {
spacing: {
margin: 'value',
padding: {
top: 'value',
}
}
}
}
Issue Description
The example code for default attributes for spacing is not correct i think.
This does not work for me, but it worked, if i add
spacingto the object:URL of the Page with the Issue
https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing
Section of Page with the issue
Spacing
Suggested Fix
change documentation example to: