K

editor-has-block

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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

Ready to contribute?

Build your own codemod and share it with the community.