This commit is contained in:
Brett 2024-05-03 15:08:54 -07:00 committed by GitHub
commit afd3dfe480
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}