Editor : make `cursorPosition` optional instead of named optional, so as to not break users

If it were a more logical parameter with a good name I'd be okay
breaking people, but since it is pretty strange and not well named I
think it is good to leave it as is; users are then drawn to the docs to
find out what the number is, rather than thinking it means something
else.