Skip to content

Change cursor start position? #243

@jsjoeio

Description

@jsjoeio

Hi! Thanks for making this library.

Is there a way to change where the cursor starts? I tried creating an EditorState with a selection value but that didn't seem to do it:

https://codesandbox.io/s/react-codemirror-example-codemirror-6-hook-forked-zc7d4?file=/src/App.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions