ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.55k stars 2.29k forks source link

[Bug]: editor.commands.setContent does not set attributes on Document node #5813

Open StephanMeijer opened 1 week ago

StephanMeijer commented 1 week ago

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