[repro provided] adding text paragraph without parsing the children into type="text" #5814
Answered
by
artf
addlistener
asked this question in
Q&A
-
https://stackblitz.com/edit/grapesjs-react-custom-ui-mtdfh3?file=src%2FApp.tsx I'm trying to add the following to the canvas
However child nodes are parsed into type="text" or type="link". Is it possible we only preserve the top level type="text" node? Since it's more reasonable we edit the paragraph as a single text box(plus I have a custom rte) |
Beta Was this translation helpful? Give feedback.
Answered by
artf
Apr 17, 2024
Replies: 1 comment 2 replies
-
Did you try this option ( grapesjs/src/dom_components/config/config.ts Lines 17 to 28 in 717e429 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
addlistener
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you try this option (
config.domComponents.disableTextInnerChilds
)?grapesjs/src/dom_components/config/config.ts
Lines 17 to 28 in 717e429