fix: append new line after file upload placeholder in editor
This commit is contained in:
parent
9a5008080a
commit
8db655cc37
2 changed files with 3 additions and 5 deletions
|
|
@ -104,7 +104,7 @@ export default function PostContent({
|
|||
<div className="flex gap-2 items-center">
|
||||
<Uploader
|
||||
onUploadSuccess={({ url }) => {
|
||||
textareaRef.current?.appendText(url)
|
||||
textareaRef.current?.appendText(url + '\n')
|
||||
}}
|
||||
onUploadingChange={(uploading) =>
|
||||
setUploadingFiles((prev) => (uploading ? prev + 1 : prev - 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue