feat: Add option to preserve whitespace in parseOptions (#2448)

zio/stable
华丽 2024-01-27 02:44:07 +08:00 committed by GitHub
parent 8db37617d4
commit 285f83e2fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ export function useTiptap(options: UseTiptapOptions) {
class: 'content-editor content-rich', class: 'content-editor content-rich',
}, },
}, },
parseOptions: {
preserveWhitespace: 'full',
},
autofocus, autofocus,
editable: true, editable: true,
}) })