JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions Issue with Excel table paste behavior in editor component

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #112443
    Ondřej
    Participant

    Hi,
    I’m using the editor component (React) and encountering an issue when pasting content copied from Excel.

    When users paste an Excel table using Ctrl+V or right-click → Paste, the content is inserted as an image, even after changing the pasteFormat prop.

    However, if the user clicks the built-in “Paste” button in the toolbar, the table is pasted correctly as a table (not as an image).

    The problem is that most users will paste directly using the keyboard or context menu, not the button.

    I tried intercepting the paste event and manually triggering executeCommand(‘paste’), but this doesn’t work—and I also noticed ‘paste’ is not listed among the supported commands.

    Is there a workaround to force the correct paste behavior when using Ctrl+V? Or a way to customize the paste handling so it matches the button’s behavior?

    Thanks!

    • This topic was modified 1 week, 2 days ago by Ondřej.
    • This topic was modified 1 week, 2 days ago by Ondřej.
    #112467
    Markov
    Keymaster

    Hi,

    We will extend the editor’s behavior for pasting Excel tables in the next release.

    Thanks for the feedback.

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.