Documentation
Caret
is
element | Node , Element , Dom | |
type | String | Type of check: start or end. |
Checks the position of caret at the editable block.
var isEnd = this.app.caret.is(element, 'end');
set
element | Node , Element , Dom | |
position | String | Position of the caret: start. end, before, after. |
Sets the caret at the specified position.
this.app.caret.set(element, 'start');
dkjgvo65776inru43654