From 285f83e2fa9b873eac38d4bd86b9962bc97b24ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=B8=BD?= Date: Sat, 27 Jan 2024 02:44:07 +0800 Subject: [PATCH] feat: Add option to preserve whitespace in parseOptions (#2448) --- composables/tiptap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composables/tiptap.ts b/composables/tiptap.ts index 557b27fd..dd629937 100644 --- a/composables/tiptap.ts +++ b/composables/tiptap.ts @@ -110,6 +110,9 @@ export function useTiptap(options: UseTiptapOptions) { class: 'content-editor content-rich', }, }, + parseOptions: { + preserveWhitespace: 'full', + }, autofocus, editable: true, })