Replies: 1 comment 1 reply
-
A Shallow Explanation: When you provide custom components, we parse it and render it as component and insert into the view. In your case when inject the HTML string into the DOM, you will need to handle that. One of the thing that comes to my mind right away when rendering html is See. https://angular.io/guide/elements. Since this is not an issue with ngx-tiptap, I am moving to discussion. Feel free to continue the thread. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My question is I think not obvious. I tried to create a dedicated component to display the content generated by the editor. The component receives the JSON previously extracted by the editor which has been saved in the database. This component allows to display the HTML rendering according to the JSON. So I used the generateHTML() method of tiptap/html by passing it the model and the schema according to the extensions. But it doesn't allow me to display my nodeviews which use an Angular component. Do you have an idea? I think adding a viewer to display this rendering would be very useful for Ngx-Tiptap. I had this system when I was using Ngx-Quill.
Beta Was this translation helpful? Give feedback.
All reactions