[Bug]: Unable to use myNodePos.setAttribute on custom new extensions #5248
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
Affected Packages
@tiptap/[email protected]
Version(s)
2.4.0
Bug Description
When I try to use setAttribute on a Node Element that is a custom extension that I created with Node.create it seems to take no effect. If I instead create the Extension via Paragraph.extend it will work.
Browser Used
Chrome
Code Example URL
https://codesandbox.io/p/sandbox/magical-banzai-mhphdm
Expected Behavior
Would expect to have setAttribute work just the same on Extensions that are created from scratch with Node.create
Additional Context (Optional)
There is an error in the docs, it is "setAttribute": #4956
Dependency Updates
The text was updated successfully, but these errors were encountered: