To get and set the caret position in an contenteditable element, I've tried the code from To get and set the caret position in an content
To get and set the caret position in an contenteditable element, I've tried the code from To get and set the caret position in an content