OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Add event handler to an element inside ReactQuill editor

  • Thread starter Thread starter Achraf FAWZI
  • Start date Start date
A

Achraf FAWZI

Guest
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).

enter image description here

<p>I'm using ReactQuill in my project and I'm having an issue.
when I insert a <code><li onclick=${handleClick}>...</li></code> 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 <code>onclick</code> handler. See image below).</p>
<p><a href="https://i.sstatic.net/jyDdZipF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jyDdZipF.png" alt="enter image description here" /></a></p>
 
Top