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]: editor.commands.setContent does not set attributes on Document node #5813

Open
1 task done
StephanMeijer opened this issue Nov 7, 2024 · 0 comments
Open
1 task done
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@StephanMeijer
Copy link

Affected Packages

core

Version(s)

2.91

Bug Description

On the Document Node, attributes were not set properly when using editor.commands.setContent.

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/sandbox/adoring-elion-vvydqz

Expected Behavior

Attributes on Document to be set, like it was set on Paragraph.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@StephanMeijer StephanMeijer added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Nov 7, 2024
StephanMeijer added a commit to StephanMeijer/tiptap that referenced this issue Nov 7, 2024
Related to ueberdosis#5813. Fixes editor.command.setContent not setting attribute
on document.
StephanMeijer added a commit to StephanMeijer/tiptap that referenced this issue Nov 7, 2024
Related to ueberdosis#5813. Fixes editor.command.setContent not setting attribute
on document.
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. Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

1 participant