-
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.
Answered by
sibiraj-s
Jan 11, 2022
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.
0 replies
Answer selected by
rjvelazco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will get all the attributes thats parsed via
renderHTML
inthis.node.attrs
. You can manually add them to the component.