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

Missing NodeViewWrapper #79

Open
bugproof opened this issue Dec 18, 2024 · 3 comments
Open

Missing NodeViewWrapper #79

bugproof opened this issue Dec 18, 2024 · 3 comments

Comments

@bugproof
Copy link

seems like NodeViewWrapper is missing?

@bugproof
Copy link
Author

bugproof commented Dec 18, 2024

I added this to my project. Works.

import { Directive, HostBinding } from '@angular/core';

@Directive({
  selector: '[tiptapNodeViewWrapper]'
})
export class TiptapNodeViewContentDirective {
  @HostBinding('attr.data-node-view-wrapper') public handle: string = '';
  @HostBinding('style.white-space') public whiteSpace: string = 'normal';
}

Thank you for this binding lib !

@bugproof bugproof changed the title Extending existing extensions Extending existing extensions missing NodeViewWrapper Dec 18, 2024
@bugproof bugproof changed the title Extending existing extensions missing NodeViewWrapper Extending existing extensions Dec 18, 2024
@bugproof bugproof changed the title Extending existing extensions Missing NodeViewWrapper Dec 18, 2024
@sibiraj-s
Copy link
Owner

Kindly provide some more information about the issue and requirement, so i can include this to the project.

@bugproof
Copy link
Author

bugproof commented Dec 20, 2024

I think it's needed for extending other nodes. Like if you wanted to make your own image node based on original node.

https://tiptap.dev/docs/editor/extensions/custom-extensions/node-views/react#render-a-react-component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants