Fix "Add to Note" for not yet created note

This commit is contained in:
Martynas Bagdonas 2021-02-18 18:11:19 +02:00 committed by Dan Stillman
parent 5ddae7c6e6
commit d0bdc45b9f

View file

@ -152,6 +152,7 @@ class EditorInstance {
}
async insertAnnotations(annotations) {
await this._ensureNoteCreated();
let html = await this._digestAnnotations(annotations);
if (html) {
this._postMessage({ action: 'insertHTML', pos: -1, html });