Skip to content

Commit

Permalink
fix: openLinkCreator with unsaved context note
Browse files Browse the repository at this point in the history
fix: #952
  • Loading branch information
windingwind committed Apr 16, 2024
1 parent 3f7ee8d commit df8ecc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/editor/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function initEditorToolbar(editor: Zotero.EditorInstance) {
{
type: "click",
listener: (e) => {
editor.saveSync();
openLinkCreator(noteItem, {
lineIndex: getLineAtCursor(editor),
});
Expand Down

0 comments on commit df8ecc5

Please sign in to comment.