fix: get the wrong link after selecting an attachment

pull/893/head
Ryan Wang 2023-02-27 16:16:56 +08:00
parent de2612da27
commit 8c09d544b4
1 changed files with 1 additions and 5 deletions

View File

@ -314,11 +314,7 @@ export function useAttachmentSelect(
})
.filter(Boolean) as Content[];
editor.value
?.chain()
.focus()
.insertContent([...contents, { type: "paragraph", content: "" }])
.run();
editor.value?.chain().focus().insertContent(contents).run();
};
return {