You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pasting values from an Excel file, the Grid is using the HTML format, instead of Plain Text. This is troublesome as Excel can have many visual formats and the Grid is not using the raw value.
Take as an example a value "12345.67" in Excel. Depending on the cell width, Excel will show the value trimmed, rounded or even replaced with "####".
These are the values used if HTML format is first, which are not correct:
However, Plain Text contains the correct raw values:
Proposal:
Change the evaluation to consider clipboard format text/plain first and text/html second.
Second proposal:
Control the order of evaluation with a prop. Some prop called clipboardFormatPriority, with an array of values text/html,text/plain, text.
The text was updated successfully, but these errors were encountered:
Thx for contributing @lucasbozzo
The issue I have with this is that doing it the other way also has edge cases. Notably for managing whitespaces and line return that just don't work with plain text... Are there any other solution? If you can copy / paste it from Excel to another Excel file, there must be a way to get that data correctly.
When pasting values from an Excel file, the Grid is using the HTML format, instead of Plain Text. This is troublesome as Excel can have many visual formats and the Grid is not using the raw value.
Take as an example a value "12345.67" in Excel. Depending on the cell width, Excel will show the value trimmed, rounded or even replaced with "####".
These are the values used if HTML format is first, which are not correct:
However, Plain Text contains the correct raw values:
Proposal:
Change the evaluation to consider clipboard format
text/plain
first andtext/html
second.Second proposal:
Control the order of evaluation with a prop. Some prop called
clipboardFormatPriority
, with an array of valuestext/html
,text/plain
,text
.The text was updated successfully, but these errors were encountered: