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.