[Bug]: Vue3 node.toJson() returns child content with proxies #3995
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Triage: Open
A new issue or pullrequest that requires triage (added by default)
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
core
What Tiptap version are you using?
2.0.2
What’s the bug you are facing?
When using tiptap with vue 3 and having a node with children, when I call node.toJson() I get all the proxy methods in the result. Don't know if this is actually the desired behavior, there is an easy fix to stringify and parse the json content where it's needed.
What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
pseudocode:
if i call node.toJson() in parent item - i expect all the underlying content to be serialized in json without proxy objects
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: