Open Sidsector9 opened 1 month ago
That seems like a decent option for now, though we'll want to be mindful of a potential future Gutenberg update that would allow us to add a button to the group block for different block types.
On discussing with @fabiankaegy internally a block toolbar button is unlikely but not completely impossible - https://fueled10up.slack.com/archives/C8Z3WMN1K/p1725896911758419
Is your enhancement related to a problem? Please describe.
Currently the Content Resizing and Rewrite Tone features only work on multiple blocks if and only if the blocks selected are of the same type.
This is due to the limitation that Gutenberg doesn't display the button added to the Block Toolbar when multiple blocks of different types are selected.
Example:
Same types:
Different types:
We can add buttons to the Document Panel but this introduces poor UX when multiple blocks are selected.
Designs
I propose adding an extendible plugin area at the top inside the Editor Toolbar like the following:
https://github.com/user-attachments/assets/2961ca1f-8a99-4b24-b3b3-e706383d0dfa
In the example, I have added the controls for the existing features, but in practice this will contain controls for features like Content Resizing, Rewrite tone and any feature that has to work on multiple blocks.
@10up/open-source-practice open to hear your thoughts on this!
Describe alternatives you've considered
No response
Code of Conduct