I’m encountering an issue in my Vue 3 project where I need to determine the line number where the cursor is located in contenteditable div. This should work not only when typing but also when clicking anywhere within the text.
I’ve searched through many forums but only found solutions related to character offsets, not line numbers.