Get cursor position and check number of characters in contenteditable?

  • 0
    How, after moving to a new line, to get the position of the cursor and check the number of characters in the element where the cursor is.

    <div class="editor-box">
      <div class="editor-content" id="editor-content" contentEditable="true">
    JavaScript Colin Bowers, Jun 23, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!