mirror of
https://github.com/codex-team/editor.js
synced 2024-05-18 14:26:48 +02:00
Merge f50a3f2e1f
into bd1de56ef3
This commit is contained in:
commit
afd3dfe480
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue