Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable find/replace behaviour and use browser default #464

Closed
UhMarco opened this issue Mar 4, 2023 · 2 comments
Closed

Disable find/replace behaviour and use browser default #464

UhMarco opened this issue Mar 4, 2023 · 2 comments

Comments

@UhMarco
Copy link

UhMarco commented Mar 4, 2023

Rather than seeing this:
replace

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

Is this possible?

@jaywcjlove
Copy link
Member

@UhMarco

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

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

@UhMarco UhMarco closed this as completed Mar 5, 2023
@UhMarco
Copy link
Author

UhMarco commented Mar 5, 2023

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants