Replies: 1 comment 9 replies
-
Did you see the code at https://github.com/sibiraj-s/ngx-tiptap/tree/master/projects/demo? Try running the project locally. Two custom angular components are implemented using NodeViews. Steps to run the project locally
Lets me know if that doesn't solve your problem. I'll try to help further. Also try adding a minimal stackblitz of what you have tried to better/quickly solve the problem |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @sibiraj-s , First of all thanks for this amazing lib 👍 . I am trying to create a
code-block
extension similar to Gitlab.Here's the structure that they have
Now I am trying to replicate the same in Angular and when I add the
addNodeView()
along with mycode-block.component
, I do'nt seem to understand how to get theHTML output
that the extension is outputting.If I use the
tiptapNodeViewContent
directive on my wrapper component, I do not get thepre / code
tags that are rendered by the extension , I'd rather need to write like the below on my component.How to make this block seem to reflect in the wrapper
When we look at the Gitlab wrapper they do something like this
Could you please let us know if my understanding is right ? Many thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions