問題:
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
元素。