editor.js
editor.js copied to clipboard
this.Editor.BlockManager.clear() should be awaited in renderFromHTML()
I believe this.Editor.BlockManager.clear() should be awaited in renderFromHTML() to prevent errors.
The following example highlights the issue: data.blocks will often be empty as a result of not awaiting clear().
await $editorApi.blocks.renderFromHTML(html);
const data = await $editorApi.saver.save();
Gday, can i take this on?
Gday, can i take this on?
Hello. Sure.