This commit is contained in:
@@ -39,7 +39,7 @@ export default (({ title: initTitle, body: initBody, onSubmit, id }: Props) => {
|
||||
formData,
|
||||
{ headers: { 'Content-Type': 'multipart/form-data' } })
|
||||
|
||||
return `{{img:${ asset.no }}}`
|
||||
return asset.url
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -43,7 +43,7 @@ const makeComponents = (preview = false) => (
|
||||
img: (({ src, alt }) => (
|
||||
<img src={src ?? ''}
|
||||
alt={alt ?? ''}
|
||||
className="max-w-full h-auto rounded"/>)),
|
||||
className="max-w-[240px] max-h-[320px]"/>)),
|
||||
} as const satisfies Components)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user