问题:
I need to move caret to end of contenteditable
node like on Gmail notes widget.我需要像 Gmail 笔记小部件一样将插入符号移动到contenteditable
节点的末尾。
I read threads on StackOverflow, but those solutions are based on using inputs and they doesn't work with contenteditable
elements.我在 StackOverflow 上阅读了线程,但这些解决方案基于使用输入,并且它们不适用于contenteditable
元素。