-
Notifications
You must be signed in to change notification settings - Fork 47
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
[IMP] clipboard: preserve cell style and format when copy/pasting cross spreadsheets #4053
Conversation
7a773c4
to
8f650d2
Compare
0c59953
to
c5c78c4
Compare
f2bee9d
to
4c94ede
Compare
f9fcdec
to
b140631
Compare
e32b699
to
069cb8d
Compare
d659d47
to
50546cf
Compare
68682e4
to
46b2256
Compare
46b2256
to
01bb5b3
Compare
6230554
to
576d350
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more suggestions, otherwise it LGTM 👍 and almost ready to merge :)
6843d08
to
78fff77
Compare
78fff77
to
8560e26
Compare
8560e26
to
e501270
Compare
5353598
to
e260667
Compare
Task: 0 Co-authored-by: Rachico <[email protected]>
e260667
to
1a1fcb7
Compare
Before this commit, copying and pasting content cross spreadsheets removes all cell style and format and only keeps cell values. This is because the model clipboard is different from one instance to another. This commit solves the issue by adding a new custom type in the os clipboard (`application/o-spreadsheet`) and using the content saved in this key to re-create the cell style and format in the new spreadsheet. NOTE: After an assessment of the capabilities and limitations of most modern browsers, here's the bottom line till the date of this commit: For Google Chrome (and all chromium browsers: Opera, Edge, Brave,...): read/write are supported for custom types; Therefore cross spreadsheet copy/paste works like a charm. For Safari and Mozilla Firefox: saving custom types in the os clipboard is not supported; Therefore, cross spreadsheet copy/paste does not work. Task: 3597039
1a1fcb7
to
bf4cb25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reformatted the commit message to have shorter lines.
A common guideline is: the title should be short (ideally < 50 chars) and all lines in
the message as well (ideally < 80 chars)
robodoo r+ rebase-ff
Merge method set to rebase and fast-forward. |
Task: 0 Part-of: #4053 Signed-off-by: Lucas Lefèvre (lul) <[email protected]> Co-authored-by: Rachico <[email protected]>
Before this commit, copying and pasting content cross spreadsheets removes all cell style and format and only keeps cell values. This is because the model clipboard is different from one instance to another. This commit solves the issue by adding a new custom type in the os clipboard (`application/o-spreadsheet`) and using the content saved in this key to re-create the cell style and format in the new spreadsheet. NOTE: After an assessment of the capabilities and limitations of most modern browsers, here's the bottom line till the date of this commit: For Google Chrome (and all chromium browsers: Opera, Edge, Brave,...): read/write are supported for custom types; Therefore cross spreadsheet copy/paste works like a charm. For Safari and Mozilla Firefox: saving custom types in the os clipboard is not supported; Therefore, cross spreadsheet copy/paste does not work. closes #4053 Task: 3597039 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
[IMP] clipboard: preserve cell style and format when copy/pasting cross spreadsheets
Problem
Before this commit, copying and pasting content cross spreadsheets removes all cell style and format and only keeps cell values. This is because the model clipboard is invalidated from one instance to another.
Solution
This commit solves the issue by adding a new custom type in the os clipboard (
application/o-spreadsheet
) and using the content saved in this key to re-create the cell style and format in the new spreadsheet.NOTE: After an assessment of the capabilities and limitations of most modern browsers, here's the bottom line till the date of this commit:
For Google Chrome (and all chromium browsers: Opera, Edge, Brave,...): read/write are supported for custom types; Therefore cross spreadsheet copy/paste works like a charm.
For Safari and Mozilla Firefox: saving custom types in the os clipboard is not supported; Therefore, cross spreadsheet copy/paste does not work.
Task: 3597039
review checklist