uiwjs / react-codemirror

CodeMirror 6 component for React. @codemirror https://uiwjs.github.io/react-codemirror/
https://uiwjs.github.io/react-codemirror/
MIT License
1.64k stars 130 forks source link

Disable find/replace behaviour and use browser default #464

Closed UhMarco closed 1 year ago

UhMarco commented 1 year ago

Rather than seeing this: replace

I'd like codemirror to use the browser default which looks like this:

image

Is this possible?

jaywcjlove commented 1 year ago

@UhMarco

import CodeMirror from '@uiw/react-codemirror';

function App() {
  return (
    <CodeMirror
      value="console.log('hello world!');"
      height="200px"
      basicSetup={{
+        searchKeymap: false,
      }}
    />
  );
}
UhMarco commented 1 year ago

Thank you