Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Vue3 node.toJson() returns child content with proxies #3995

Open
1 of 2 tasks
fushugaku opened this issue Apr 29, 2023 · 0 comments
Open
1 of 2 tasks

[Bug]: Vue3 node.toJson() returns child content with proxies #3995

fushugaku opened this issue Apr 29, 2023 · 0 comments
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

Comments

@fushugaku
Copy link

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.

image

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

pseudocode:

<form-item>
	<input-item></input-item>
	<input-item></input-item>
	<input-item></input-item>
	<input-item></input-item>
</form-item>

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?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@fushugaku fushugaku added 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 labels Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: Triage open
Development

No branches or pull requests

3 participants