Add Text-align Control to Gutenberg Block Toolbar
First add a new attribute to hold the state of the alignment: Then add WordPress’ alignment control to the block toolbar in the block’s edit function: From there, the same attribute can be used in a save function or in a PHP render callback for dynamic blocks to apply the…