WP Gutenberg – custom block with two content fields

You don’t need propstwo. It doesn’t serve any purpose. There’s only one props argument, and you use it to get access to your block’s attributes. Both header and content are attributes, so you access both of them through the same props argument: wp.blocks.registerBlockType(‘myblock/question-block’, { title: ‘Blok Pytan’, icon: ‘dashicons-welcome-write-blog’, category: ‘common’, attributes: { header: { … Read more

Customizing the CSS for the post/page editor?

Right, Additional CSS only applies to the front end (visitor viewing area) of the website. You can add CSS to just the editor itself, but keep in mind, blocks are designed to fit in this Core column, so you may end up with some styling oddities if you change it. There may be other hard-coded … Read more