BlockAlignmentToolbar: no ‘full’?
-
Hi,
I am trying to use the block alignment toolbar. Even while setting ‘wideControlsEnabled’ to ‘true’ and/or ‘controls’ to an array that includes ‘full’, the controls in the toolbar are limited to ‘left’, ‘center’ and ‘right’ (or less choices, if I use a ‘control’ attribute that excludes some of them).
return [ wp.element.createElement( wp.editor.BlockControls, { key: 'controls' }, wp.element.createElement( wp.editor.BlockAlignmentToolbar, { value: props.attributes.position, onChange: onChangePosition, isCollapsed: false, wideControlsEnabled: true, controls: [ 'left', 'center', 'right', 'full' ], } ) ), wp.element.createElement( wp.editor.RichText, { key: 'richtext', tagName: 'p', className: props.className + '-' + props.attributes.position, onChange: onChangeContent, value: props.attributes.content, } ), ];
Am I missing something?
Thank you.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘BlockAlignmentToolbar: no ‘full’?’ is closed to new replies.