Transform Editor.hasBlock to Editor.nodes
This codemod replaces occurrences of Editor.hasBlock with the equivalent Editor.nodes structure. The transformation updates the code to use a more modern API, ensuring compatibility and improved functionality.
// Before (v0.88) - Editor.hasBlock usage
ts
After (v0.104) - Alternative approach using Editor.nodes
ts