Skip to content

RenderHTML does not work with addNodeView #19

Closed Answered by sibiraj-s
rjvelazco asked this question in Q&A
Discussion options

You must be logged in to vote
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 renderHTML in this.node.attrs. You can manually add them to the component.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rjvelazco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants