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]: Unable to use myNodePos.setAttribute on custom new extensions #5248

Open
1 task done
rene-ka opened this issue Jun 18, 2024 · 0 comments
Open
1 task done

[Bug]: Unable to use myNodePos.setAttribute on custom new extensions #5248

rene-ka opened this issue Jun 18, 2024 · 0 comments
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

@rene-ka
Copy link

rene-ka commented Jun 18, 2024

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

  • Yes, I've updated all my dependencies.
@rene-ka rene-ka 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 Jun 18, 2024
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
Status: Triage open
Development

No branches or pull requests

1 participant