javascript:position:get_caret_position_in_contenteditable
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
javascript:position:get_caret_position_in_contenteditable [2020/05/20 19:20] – created peter | javascript:position:get_caret_position_in_contenteditable [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 79: | Line 79: | ||
return range.endOffset + SelectionUtils.getCharacterCountToNode(range.endContainer, | return range.endOffset + SelectionUtils.getCharacterCountToNode(range.endContainer, | ||
}; | }; | ||
+ | </ | ||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | < | ||
+ | < | ||
+ | <p> | ||
+ | This is a paragraph. | ||
+ | </p> | ||
+ | <p> | ||
+ | < | ||
+ | </p> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
</ | </ | ||
---- | ---- | ||
- | {{: | + | {{: |
javascript/position/get_caret_position_in_contenteditable.1590002452.txt.gz · Last modified: 2020/07/15 09:30 (external edit)