()
| 7 | * https://github.com/uiwjs/react-codemirror/issues/650 |
| 8 | */ |
| 9 | export function Component() { |
| 10 | const extension = events.content({ |
| 11 | paste: (event) => { |
| 12 | event.preventDefault(); |
| 13 | }, |
| 14 | }); |
| 15 | return ( |
| 16 | <Fragment> |
| 17 | <CodeMirror |
| 18 | value={`console.log('hello')`} |
| 19 | theme="none" |
| 20 | height="400px !important" |
| 21 | width="100%" |
| 22 | style={{ margin: '0 0 23px 0', flex: 1 }} |
| 23 | extensions={[langs.markdown(), extension]} |
| 24 | /> |
| 25 | </Fragment> |
| 26 | ); |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…