mirror of https://github.com/halo-dev/halo-admin
fix: get the wrong link after selecting an attachment
parent
de2612da27
commit
8c09d544b4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue