enh: rich text input preserve breaks

This commit is contained in:
Timothy Jaeryang Baek
2024-11-30 15:05:08 -08:00
parent d3778b0bda
commit acb61d3c42
3 changed files with 35 additions and 13 deletions

View File

@@ -817,6 +817,7 @@
className="input-prose-sm"
bind:value={selectedFile.data.content}
placeholder={$i18n.t('Add content here')}
preserveBreaks={true}
/>
{/key}
</div>

View File

@@ -67,7 +67,11 @@
</div>
<div class=" flex-1 w-full h-full">
<RichTextInput bind:value={content} placeholder={$i18n.t('Write something...')} />
<RichTextInput
bind:value={content}
placeholder={$i18n.t('Write something...')}
preserveBreaks={true}
/>
</div>
</div>
</div>