How to add a new attribute to core wp block editor without npm?

Question

I need to add a new attribute with color selector to a core paragraph/heading block. What would be bracets-color="#5a6a81" for example. I’ve been googling all day and only found examples with npm installation. But I can’t install it on wp hosting.

I saw the article https://jeffreycarandang.com/extending-gutenberg-core-blocks-with-custom-attributes-and-controls/ but it doesn’t help without the npm.

0
Артём Рябчук 2 months 2023-01-27T09:47:30-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse