react-codemirror2
react-codemirror2 copied to clipboard
Codemirror integrated components for React
Now, we want to use react-codemirror2 in the style of static javascript file. I mean, we do not want to use it through npm or yarn with the environment of...
If I replace selection like below in original codemirror, new text are selected. But in react-codemirror2, wrong text are selected. ```js doc.replaceSelection('**' + text + '**', 'around'); ```
`inputStyle: textarea` on mobile makes selection impossible (you cannot select text). `inputStyle: contenteditable` on mobile (with the keyboard up) scrolls the cursor into view even with `autoScroll: false` and `autoCursor:...
Steps to reproduce: 1. Set these options: ``` { ... gutters: ['CodeMirror-linenumbers', 'CodeMirror-lint-markers'], } ``` 2. Render your component 3. Make component to be rendered again so [componentWillReceiveProps](https://github.com/scniro/react-codemirror2/blob/3d29515e00e20c70691645db45937bc40c209a12/src/index.tsx#L773) is called...
Fix #144 Events have been determined by referring to the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/Events).
Hello, and thanks for this useful package. I've noticed a minor issue that I believe to be a bug, regarding the way CodeMirror's native events (e.g. `onBlur`, `onCopy`, etc.) are...
This may be a stack management issue. It might also be a CodeMirror bug, though I haven't figured out how to reproduce it outside of `react-codemirror2`. ### Background In the...
The VIM mode has strange behavior when working with states. For example, when I press either 'o' or 'i' to enter insert mode, then press Backspace. It doesn't seem to...
This *feels* like a bug to me even though it may not exactly be one. Repro: 1. Load [the demo site](https://scniro.github.io/react-codemirror2/). 2. Ensure you're in `CONTROLLED` mode. 3. Select the...
The `selection` prop seems to be working only on `componentDidMount`. This makes controlled selection not working (`onSelection` => `state` => `selection`).