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

Why is there no event listener for text selection? #647

Open
dongmucat opened this issue Jun 5, 2024 · 1 comment
Open

Why is there no event listener for text selection? #647

dongmucat opened this issue Jun 5, 2024 · 1 comment

Comments

@dongmucat
Copy link

I can't find the text selection event listener in the documentation.

@jaywcjlove
Copy link
Member

@dongmucat

<MDEditor
  textareaProps={{
+    onSelect: () => {
+      console.log('onSelect');
+    },
  }}
  style={{ width: '100%' }}
  value={value}
  onChange={onChange}
/>

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