I have one contenteditable div and adding raw html including a click event using v-html. But the click event is not working in this case. Inspecting elements shows there's a click event on the div but still it won't work.
If I hard code any other div with click event inside contenteditable div then it's working. Don't know if I am doing it right.
:
<div id="div_textarea2" v-html="temp_testing_div2" contenteditable="true"></div>
data () {
return {
temp_testing_div2: `<div @click="ClickLine">Click this</div>`,
}
}
ClickLine(){
alert("Clicked");
}