Using applyFormat (from @wordpress/rich-text) to make persistent changes to Gutenberg’s rich text value
I finally figured it out. Just posting it here if anyone needs to do this as the Gutenberg documentation lacks code examples. With reference to the below code, blockIndex is the block you are dealing with; and startIndex and endIndex are ranges to annotate in context of the block: // Get latest modified content of … Read more