react-codemirror2
react-codemirror2 copied to clipboard
Codemirror integrated components for React
Currently CodeMirror provides a wrapper to scrollTo. It would be helpful if it provides a similar wrapper for [scrollIntoView](https://codemirror.net/doc/manual.html#scrollIntoView). If one wants to scroll the editor to a particular line...
I use a button to control the display of codemirror, and when I click the button, the codemirror would be focus. so I use `this.CodeMirrorInstance` to control the codemirror component's...
Key events such as `onKeyPress` have the wrong types ``` '(k: Editor, e: KeyboardEvent) => void' is not assignable to type 'DomEvent'. ```
Step1: save the codes with multi lines Step2: get the codes and fill in the codemirror editor issue: the saved codes displayed with '\n' in a line. It cannot be...
I'm trying to use this library but I get this error: ``` Uncaught TypeError: place is not a function at new Display (codemirror.js:4361) at new CodeMirror (codemirror.js:7850) at CodeMirror (codemirror.js:7838)...
I'm using Fira Code in opentype format, and none of the `font-feature-settings` are working, even though they work fine outside of the CodeMirror div.
 setCursor was added by codemirror. https://github.com/DefinitelyTyped/DefinitelyTyped/commit/f65c1063960cccb4f4b04485e71b1d53d3df57e9#diff-3ad9f9473e8ea6885957422d59660579
When trying to convert Japanese using IME in the editor, the character is entered before selecting
Hello. I am a Web Developer from Japan. Thank you very much for making the module `react-codemirror2`. When I try to convert Japanese using IME, characters are entered into the...
We know Editor's onCursorActivity could be set like this: ``` ``` How about the Editor.Doc
https://stackblitz.com/edit/react-ts-yjzlde?file=App.tsx 