Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

const bm unused in blocks.ts file #132

Open
gautamgiri-dev opened this issue Aug 3, 2023 · 1 comment
Open

const bm unused in blocks.ts file #132

gautamgiri-dev opened this issue Aug 3, 2023 · 1 comment

Comments

@gautamgiri-dev
Copy link

const bm = editor.Blocks
is unused and editor.Blocks is directly being called inside the addBlock function. We can remove the line.

@gautamgiri-dev
Copy link
Author

or alternatively we can use bm at the place of editror.Blocks.add call by changing it to bm.add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant