added async to renderFromHTML in BlocksAPI

This commit is contained in:
Brett Earle 2024-04-05 23:19:36 +10:30
parent 1320b047a2
commit f50a3f2e1f

View file

@ -205,8 +205,8 @@ export default class BlocksAPI extends Module {
* @param {string} data - HTML string to render
* @returns {Promise<void>}
*/
public renderFromHTML(data: string): Promise<void> {
this.Editor.BlockManager.clear();
public async renderFromHTML(data: string): Promise<void> {
await this.Editor.BlockManager.clear();
return this.Editor.Paste.processText(data, true);
}