How to use newPosition(element, offset) in Google Document?

169 views Asked by At

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.

0

There are 0 answers