fix: openLinkCreator with unsaved context note

fix: #952
This commit is contained in:
windingwind 2024-04-17 00:05:26 +08:00
parent 3f7ee8d769
commit df8ecc5cc2

View File

@ -25,6 +25,7 @@ export async function initEditorToolbar(editor: Zotero.EditorInstance) {
{
type: "click",
listener: (e) => {
editor.saveSync();
openLinkCreator(noteItem, {
lineIndex: getLineAtCursor(editor),
});