Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Conversation

janmyler
Copy link

Enable passing configuration options for CodeMirror via props from <Playground /> while keeping the original defaults.

Adds: lineNumbers, smartIndent, lineWrapping, tabSize.

@Intregrisist
Copy link

Intregrisist commented Nov 10, 2018

I was just about to make a PR for this. I wonder if it might be better to make it an object prop:

<Playground
   editor={{
    lineNumbers: true
  }}
/>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants