-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Image Block: breaks when setting the align #17799
Comments
I'm able to still reproduce on Gutenberg 9.5.2. |
@talldan Dan are you able to take a look? Thanks. |
It worked fine for me, so not really able to help: @chiilog Is this still happening for you? |
@talldan Hi, I'm also able to probably still reproduce on Gutenberg 10.1.1. If you don't set default alignment:
If you set default alignment as 'right':
It works fine for new blocks, but not for existing blocks. |
I see, yes, changing the default alignment would invalidate existing blocks that don't have that alignment. That is the expected behavior. I think your code would need to add a deprecation to the image block to handle that (https://developer.wordpress.org/block-editor/developers/block-api/block-deprecation/). But how you do this would depend on why you want to align images right. That's some context that is missing in this issue.
|
Describe the bug
If I set
settings.attributes.align.default = 'right';
, when it breaks.To reproduce
Expected behavior
I expected that set default alignments.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: