-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Support mixed content in table paste scenarios #6817
Comments
Let's start this with some research
If task could grow too much let's create follow-ups for non-trival cases. |
WordCases: text + table + text, br + table + br, p + table + p (empty)
GDocsCase: text + table + text, p + table + p (empty)
Case: br + tableBehaves the same way as only table would be in the clipboard. Cases: table + br, br + table + brMerges br into last table cell and then behaves as above (this is odd behavior). |
Also I noticed:
|
My proposal (since we don't support nested tables):
This would be partly replicating odd behavior of Word. I think this would be very odd and undesired but at least it would show to the user that there was some reaction and user can "undo" and pick better clipboard content for pasting. WDYT @jodator @oleq |
Case 1: I think that this is a no-brainer here - this would save some PITAs when selection was not ideal. We could do that. Case 2: Could you also check non-text content (at least images) and lists? Probably a behavior would be similar but just to confirm.
Could you also attach screenshot? I'm not sure in which table (outer or nested) your writing here. But judging from the proposal it is in nested (so the text/p is wraped by a table cell and moved to a pasted table). Another thing to consider is just wrapping everything before/after table in one |
I agree that "Case 1" is pretty obvious and you conclusions make sense 👍 . As for the "Case 2", I'm not too thrilled about it. You proposed a solution that does everything to squeeze the pasted content into the editor but in 90% of cases, users will not expect/want that. It does preserve the content in some sort of way but this is weird. Simply: this case asks for nested tables support and I think the time you will spend hacking and wrapping and who knows what, for instance:
will be way more productive if it went towards nested tables support, which would not only resolve the "Case 2" but bring a new, real value to the editor as a product. BTW: as far as I read the issue, the feature is supported, it has to be enabled and only minor issues must be addressed (@jodator?). Maybe we can research this first before we dig into something weird? |
The table in table is not researched at all ATM and I have constant fear that it might not be an easy task. We might split that to handle only case 1 for now. As @niegowski said on F2F - maybe pasting everything else for now would be OK for scenario 2. I don't have a strong feeling for either way. I'd go with a follow-up for Case 1 and leave this open. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
During work on #6120 we've decided that it would be better to fallback to the old behavior when pasting table with other content. In other word pasting is allowed only when table is the only content being pasted over a selected table fragment.
If you'd like to see this issue resolved please react with 👍 to this message.
The text was updated successfully, but these errors were encountered: