is #

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

Checks the position of caret at the editable block.

var caret = this.app.create('caret');
var isEnd = 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.

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