How do I filter/modify the updated content on save using javascript?

You could start by adding: // What to do here? wp.data.dispatch(‘core/block-editor’).insertDefaultBlock({content:’xxxxxx’}); This will insert a block with the specified text to the end of the blocks list when the user will hit the update button. Once, and then it will self-unsubscribe. To run it every time the user hits the update button, you don’t want … Read more