Skip to content

Paste format when pasting from Excel file #367

@lucasbozzo

Description

@lucasbozzo

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 "####".
image

These are the values used if HTML format is first, which are not correct:
image

However, Plain Text contains the correct raw values:
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions