react-codemirror2
react-codemirror2 copied to clipboard
Codemirror integrated components for React
When using Next(typescript), I found that I couldn't use the onChange method's type when I wanted to use it. When I examined the codes, I saw that the type of...
I'd like to know if it's possbile to trigger the re run of the mode manually. I've tried changing options(like readOnly) but It doesn't fire any re run of the...

There's an issue that's impacting multiple components in our application. The `` element has no associated label which doesn't allow the browser to announce the control to a user that...
  seems cm is a ES Module, It can not be run as a function. 
I have case where I need to update the linting error messages from a button click outside the codeMirror component. Although values are updating it wont show up on the...
Has someone discovered a way to run codemirror in react v18? I rather do not want to downgrade my react version again...
import {Controlled as CodeMirror} from 'react-codemirror2'; const [instance, setInstance] = useState(null); setInstance(editor)} value={'select * from tablea'} options={{ mode: 'text/sql', foldGutter: true, gutters: [ 'CodeMirror-linenumbers', 'CodeMirror-foldgutter', 'CodeMirror-lint-markers', ], }} />
When the line number in front of the string is 1, some strings lose the highlight color. Then wrap the string that has lost its highlight color (line number 2),...