Rich text submitted content, the background to html all returned at a time, now the need is to enlarge the event on the picture, how can I add the event?

Editing page: question, answer (submitted by rich text editor)
display page: click on any question in the list, send the request, the background returns all the content submitted in rich text at one time as html, and the front end shows the vMuhml used. Now the demand is that when you click on the picture, the mask displays the original size picture, but how can I add the click event of img? the number of pictures is uncertain

.
Dec.18,2021

event proxy? Or the event bind is in the parent, and then determine the event.target?


it's best to add a component tag that enlarges the image in the rich text editor.
use ref to el to do dom operation

Menu