How to preserve the structure or styles of an HTML template passed to Editor component #3070
Unanswered
7GBars
asked this question in
PrimeReact
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
n my project, I am using the PrimeReact Editor component, which is a text editor component based on Quill.
I have an HTML template that I am trying to pass to the Editor component (it comes from the server, but for this example, I will show it locally).
When I inspect the structure in Chrome DevTools, I notice that no classes are applied (i.e., big will not work), and the
div
is converted to ap
by Quill's internal logic. Inline styles also do not apply (except for color).How can I avoid this and get the output structure that I passed (with classes and inline styles preserved)?
Beta Was this translation helpful? Give feedback.
All reactions