-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: "text/plain" clipboard data of copied table cells is incorrect #6541
Comments
I can't reproduce this, what exactly is the selection you have and which browser are you using? |
And how exactly are you copying the table in this scenario and which platform are you using? On macOS, I can't get cmd-C or the Chrome's edit menu copy to trigger the copy with a table selection on the current playground, but it does work with a range selection that includes the table |
Oh yes I'm on macOS as well (Sonoma 14.4.1), and in the examples above I was using cmd-C to trigger the copy. I can also reproduce the same behaviour using either "Edit > Copy" from Chrome's menu bar, or right-clicking a table cell and selecting "Copy". (In between each of these tests I copied some other text to wipe my clipboard data, just to be sure.) Happy to share screen recordings of any of this if that helps. |
When copying table cells from Lexical, the
text/plain
data is incorrect – it contains duplicated/nested versions of the content.Copying this table:
Results in this text content when pasted in a text editor:
Lexical version:
v0.17.0+dev.esm
(current Lexical Playground version)Steps To Reproduce
The current behavior
text/plain
clipboard data of copied table cells contains duplicated content.The expected behavior
text/plain
clipboard data should be a simple representation of the original table cell content, with no duplicationImpact of fix
Any users of tables will get correct content when pasting into plain text environments. The current issue does not seem to impact copy paste of the
text/html
orapplication/x-lexical-editor
versions of the data on the clipboard.The text was updated successfully, but these errors were encountered: