Completely bypass handling of certain tags inside GrapesJS canvas #5747
Answered
by
artf
yoheiyakmo
asked this question in
Q&A
-
Is there a way to completely avoid certain tags like <b> or <template> to be ignored from being treated as components for grapes.js within the canvas? I know that I can do editor.DomComponent.addTypes to declare specific render methods for tags, but what I am after is to completely bypass the processing by grapes.js, than to embed the data-gjs-type definition or any other traits. Any hints would be greatly appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
artf
Mar 18, 2024
Replies: 1 comment 3 replies
-
You can create a custom component for those tags and extend |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here you can find an example of React component rendered in GrapesJS one https://codesandbox.io/p/sandbox/grapesjs-react-components-n6sff?file=%2Fsrc%2Findex.js