[Vuejs]-How to get cursor position of a div element in vue js?

-1👍

Like this?

getCursor(event) {
      console.log(event); // you can read pos here
}
<div
  ref="test"
  contenteditable="true"
  :v-html="inputIntegrationHMTL"
  @mouseover="getCursor($event)"
 > </div>

Leave a comment