react-datasheet-grid icon indicating copy to clipboard operation
react-datasheet-grid copied to clipboard

pasting formatted text

Open moritzhaagit opened this issue 2 years ago • 0 comments

Whenever i try to paste Text into the Grid from Macs TextEdit or Notes App, it doesn't get pasted (surprisingly, whenever I paste via shortcut, right-click and paste works). I tried using the custom pasteHandler, but the value already arrived there already empty. It seems like the issue is with parseTextHtmlData in onPaste. If I change copyPasting_1.parseTextHtmlData into copyPasting_1.parseTextPlainData (in the first ifstatement of onPaste) it works.

moritzhaagit avatar Apr 26 '23 11:04 moritzhaagit