Fix "Add to Note" for not yet created note
This commit is contained in:
parent
5ddae7c6e6
commit
d0bdc45b9f
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ class EditorInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
async insertAnnotations(annotations) {
|
async insertAnnotations(annotations) {
|
||||||
|
await this._ensureNoteCreated();
|
||||||
let html = await this._digestAnnotations(annotations);
|
let html = await this._digestAnnotations(annotations);
|
||||||
if (html) {
|
if (html) {
|
||||||
this._postMessage({ action: 'insertHTML', pos: -1, html });
|
this._postMessage({ action: 'insertHTML', pos: -1, html });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue