JS-如何获取节点开头和当前插入符号(文本光标)位置之间的文本? - JS - how to get the text between the beginning of the node and current caret (text cursor) position?
替换contenteditable元素中的文本时如何将插入符号保持在当前位置 - How to leave the caret at its current position when replace a text in contenteditable element
如何在 JavaScript/Vue 的文本字段中获取插入符号的当前 position? - How do I get the current position of the caret in a text-field in JavaScript/Vue?
如何使用contentEditable从iframe中的当前插入位置获取像素偏移量 - How to get the pixel offset from the current caret position in an iframe with contentEditable