Editor : make `cursorPosition` a named optional of `setValue` and document the method