WordPress-gutenberg – Block validation: Expected text
The problem is with your selectors: attributes: { content: { type: ‘string’, source: ‘html’, selector: ‘p’, }, content2:{ type: ‘string’, source: ‘html’, selector: ‘p’, }, }, You’re only using p for both attributes. When the block looks at the saved HTML to validate it, it checks to see if the value of the selectors matches … Read more