diff --git a/resources/js/editor.js b/resources/js/editor.js new file mode 100644 index 0000000..e0d261d --- /dev/null +++ b/resources/js/editor.js @@ -0,0 +1,24 @@ +export default function editorInit() { + categoriesInit(); +} + +function categoriesInit() { + wp.blocks.updateCategory('metiers-patrimoine-blocks', { + icon: ( + + + + ), + }); +} + +window.addEventListener('DOMContentLoaded', editorInit);