Does PrimeReact's Editor support highlight.js? #2178
Unanswered
VladislavMaksimov
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
-
I'm using PrimeReact's Editor component and trying to add syntax highlighting to it. I tried to use
highlight.js
lib as the Quill's documentation says:Only one thing has changed in the Editor's view after it. Now I can see a select with programming languages when I try to add a code block:
Nothing is being highlighted and
e.htmlValue
now contains the code of the select element.ChatGPT says I must manipulate DOM to integrate
highlight.js
in this case. Can I do it without DOM manipulation in React?Beta Was this translation helpful? Give feedback.
All reactions