uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.03k stars 149 forks source link

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

Open dongmucat opened 1 month ago

dongmucat commented 1 month ago

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

jaywcjlove commented 5 days ago

@dongmucat

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