When pasting image inside cell - it returns data as empty string inside beforePaste hook

Tags: #<Tag:0x00007f0b10cf0068>

When pasting image inside cell - it returns data as empty string inside beforePaste hook

I want to check if the data is valid before pasting inside the cell. So image as invalid data, when pasted, it retursn data as to be empty string.

Hi @codemonkey-mike

As mentioned here https://handsontable.com/docs/basic-clipboard/

Copy & Cut actions allow exporting data from Handsontable to the system clipboard. The CopyPaste plugin copies and cuts data as a text/plain and a text/html MIME-type.

we strip the value to contain only raw text. However, if you set up the html renderer you can copy/paste HTML data only in the area of the table. You can test it here https://jsfiddle.net/46gw1kcr/5/

At the moment we do not support complex data copy. If you would like to leave your vote for this functionality to become supported please leave your comment at https://github.com/handsontable/handsontable/discussions/7913

My intention is to give users a warning that this kind of paste are not supported - like when they try to pase some screenshot or printscreen image. So I am not able to detect if this is invalid or a valid paste, As HOT validate and stripes value before data returned in beforePaste hook

I understand. But at the moment Handsontable does not support this functionality.
Due to security reason, modern browsers disallow to read from the system clipboard so what I propose it to inform the users about supported content before they try to paste the content.

Ok, thank you for the quick responses.

You are welcome @codemonkey-mike
I hope I will be able to help you more with your new requests