is #

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

Checks the position of caret at the editable block.

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

set #

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

Sets the caret at the specified position.

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