Skip to content

Commit

Permalink
feat: Add option to preserve whitespace in parseOptions (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 authored Jan 26, 2024
1 parent 8db3761 commit 285f83e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composables/tiptap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export function useTiptap(options: UseTiptapOptions) {
class: 'content-editor content-rich',
},
},
parseOptions: {
preserveWhitespace: 'full',
},
autofocus,
editable: true,
})
Expand Down

0 comments on commit 285f83e

Please sign in to comment.