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.
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.
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 atext/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.