Initialization options are not preserved with setContent method #5933
Unanswered
vlad-kuz
asked this question in
Questions & Help
Replies: 1 comment
-
|
any updates ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We using angular and creating editor with
parseOptions: {preserveWhitespace: 'full'}:after that content is displayed correctly:
but when we using setContent to change this conent (without passing third parameter parseOptions):
editor remove spaces:
if we call setConent with parseOptions
spaces are preserved, as it was after initialization:
Question. This is expected behavior? We should every time pass parseOptions with method setContent and options passed during initialization is only used to initial content?
In documentation (https://tiptap.dev/docs/editor/api/commands/content/set-content#parameters):
Beta Was this translation helpful? Give feedback.
All reactions