I want to place the cursor at the beginning of a new line after an already taken position :
var position = document.getCursor();
I tried to use document.newPosition(element, offset)
but I don't know what to put in element and in offset, if someone could help me i would really appreciate it.