(event: React.ClipboardEvent)
| 102 | } |
| 103 | |
| 104 | const handlePaste = (event: React.ClipboardEvent) => { |
| 105 | composeEventHandlers( |
| 106 | (event: React.ClipboardEvent) => { |
| 107 | if (ReadOnly.is(editor)) { |
| 108 | event.preventDefault() |
| 109 | } |
| 110 | }, |
| 111 | event => { |
| 112 | const { nativeEvent } = event |
| 113 | const isPasteText = IS_PASTE_TEXT.get(editor) |
| 114 | event.preventDefault() |
| 115 | const e = new ClipboardEvent(isPasteText ? 'pasteText' : 'paste', nativeEvent) |
| 116 | editor.onPaste(e) |
| 117 | }, |
| 118 | )(event) |
| 119 | } |
| 120 | |
| 121 | const selection = useSelectionDrawingSelection() |
| 122 | const rects = useSelectionDrawingRects() |
nothing calls this directly
no test coverage detected
searching dependent graphs…