File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
caret
2
2
=====
3
3
4
- Listen to and inspect the browser caret.
4
+ Listen to, inspect, and move the browser caret.
5
5
6
- View the [ demo] ( http://adamsanderson.github.com/caret/ ) for an example of the information you can get .
6
+ View the [ demo] ( http://adamsanderson.github.com/caret/ ) for an example of the information and operations available .
7
7
8
8
This should work with IE8+ and all modern browsers.
9
9
25
25
26
26
** caret.textAfter()** : Returns the text after the caret within the current element.
27
27
28
+ ** caret.moveToStart()** : Moves the caret to the beginning of the element that the ` Caret ` was initialized with.
29
+
30
+ ** caret.moveToEnd()** : Moves the caret to the end of the element that the ` Caret ` was initialized with.
31
+
32
+ ** caret.moveBefore(element)** : Moves the caret just before the ` element ` .
33
+
34
+ ** caret.moveAfter(element)** : Moves the caret just after the ` element ` .
35
+
28
36
Examples
29
37
--------
30
38
You can’t perform that action at this time.
0 commit comments