Relative Content

Tag Archive for javascriptreactjseventsevent-handlingreact-quill

Add event handler to an element inside ReactQuill editor

I’m using ReactQuill in my project and I’m having an issue.
when I insert a <li onclick=${handleClick}>...</li> tag and display it inside the ReactQuill editor, it shows the content of the list but I can’t fire the handler (it doesn’t even show the onclick handler. See image below).