Disallow button block being inserted directly to a column

[MAILPOET-5644]
This commit is contained in:
Rostislav Wolny
2023-11-16 15:58:28 +01:00
committed by Jan Lysý
parent 499db0034c
commit d5250cf8b8

View File

@ -23,7 +23,8 @@ function disableNestedColumns() {
if ( if (
allowedBlockType !== 'core/column' && allowedBlockType !== 'core/column' &&
allowedBlockType !== 'core/columns' && allowedBlockType !== 'core/columns' &&
allowedBlockType !== 'core/list-item' allowedBlockType !== 'core/list-item' &&
allowedBlockType !== 'core/button'
) { ) {
allowedBlockTypes.push(allowedBlockType); allowedBlockTypes.push(allowedBlockType);
} }