scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.65k stars 192 forks source link

Can I set extra options other than the default ones? #261

Closed heowc closed 2 years ago

heowc commented 2 years ago

I found this repository while writing to embed graphiql in my code. graphiql is using codemirror and additionally written addon exists. I would like to add an addon to it using react-codemirror2.

See https://github.com/graphql/graphiql/blob/main/packages/graphiql/src/components/QueryEditor.tsx/#L87...L91

heowc commented 2 years ago

I solved it by adding @ts-ignore . I'm not familiar with TypeScript, so I wasn't familiar with it. 😃