is

Arguments
element Node, Element, Dom
type StringType of check: start or end.

Checks the position of caret at the editable block.

var isEnd = this.app.caret.is(element, 'end');

set

Arguments
element Node, Element, Dom
position StringPosition of the caret: start. end, before, after.

Sets the caret at the specified position.

this.app.caret.set(element, 'start');