Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
get caret position in a contenteditbable div that has multiple lines

I am trying to get the caret position in a contenteditable div that has multiple html elements and multiple lines.

I found good solution that returns the caret position based on text only - this is not what I'm looking for.

The best solution I found until now is explained here. the problem is this does not returns the caret position in a multiple line div scenario.

please help.

thanks in advance,

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!