remove core block styles from wordpress block editor
This commit is contained in:
@@ -17,4 +17,11 @@ domReady(() => {
|
|||||||
'badegg/restrict-parent-blocks',
|
'badegg/restrict-parent-blocks',
|
||||||
restrictEditorParentBlocks
|
restrictEditorParentBlocks
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// find blocks styles
|
||||||
|
wp.blocks.getBlockTypes().forEach((block) => {
|
||||||
|
if (_.isArray(block['styles'])) {
|
||||||
|
console.log('editor.js ' + block.name, _.pluck(block['styles'], 'name'));
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user