We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe this.Editor.BlockManager.clear() should be awaited in renderFromHTML() to prevent errors.
this.Editor.BlockManager.clear()
renderFromHTML()
The following example highlights the issue: data.blocks will often be empty as a result of not awaiting clear().
data.blocks
clear()
await $editorApi.blocks.renderFromHTML(html); const data = await $editorApi.saver.save();
The text was updated successfully, but these errors were encountered:
Gday, can i take this on?
Sorry, something went wrong.
Hello. Sure.
codex-team#2641 await Blockmanager clear in renderFromHTML
b0734d7
Successfully merging a pull request may close this issue.
I believe
this.Editor.BlockManager.clear()
should be awaited inrenderFromHTML()
to prevent errors.The following example highlights the issue:
data.blocks
will often be empty as a result of not awaitingclear()
.The text was updated successfully, but these errors were encountered: