WordPress Block fixed alignment - markhowellsmead/helpers GitHub Wiki

Set fixed alignment in the editor

For custom blocks where supports.align is set to false. Add this to the registerBlockType call in the editor.js file.

getEditWrapperProps( attributes ) {
    return {...attributes, 'data-align': 'full' };
},