-
First of all thanks for your job. Second of all, I have a question, I tried to implement a custom Node using an Angular component and it worked fine until I realized that "marks" are not being set on the element. My custom node looks like:
the attributes that I am getting in the renderHTML function are not being added to the component. In this example, I receive the If someone can help me, it would be awesome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
import { AngularNodeViewComponent } from 'ngx-tiptap';
export class ImageBlockComponent extends AngularNodeViewComponent {
ngOnInit(){
console.log(this.node.attrs)
}
} You will get all the attributes thats parsed via |
Beta Was this translation helpful? Give feedback.
You will get all the attributes thats parsed via
renderHTML
inthis.node.attrs
. You can manually add them to the component.