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[];
|
.filter(Boolean) as Content[];
|
||||||
|
|
||||||
editor.value
|
editor.value?.chain().focus().insertContent(contents).run();
|
||||||
?.chain()
|
|
||||||
.focus()
|
|
||||||
.insertContent([...contents, { type: "paragraph", content: "" }])
|
|
||||||
.run();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue