-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Clipboard: support images in the clipboard
This commit adds the support of images in the clipboard. Namely, - Pasting an image from the OS clipboard will automatically upload it to the filestore and dispatch a CREATE_IMAGE accordingly. - Copying a chart or an image from the spreadsheet will add it to the oOS clipboard. It can then be pasted somewhere else, like a discuss app, a text editor maybe?. TODO - support multi type of images (not just png) It technically works because we never check agains the actual type of the file we upload but it's wrong. Maybe use a generic `image/*` mimetype instead of using png. We still need to purge out dangerous mimetypes like image/svg(+xml) - Currently uploads the image from the clipboard THEN only checks if the we are copy pasting from the same spreadsheet clipboard (potential useless upload) - Not supported by some apps like Office 365 online (word & powerpoint tested). Supposedly because our clipboard has some text/* types along the image/* so it ignores the later. for a fully integrated feature, we should probably decorrelate it from the standard copy paste and make a menu "copy image to os clipboard" ? tbd -works on discord at least - No test whatsoever
- Loading branch information
Showing
25 changed files
with
465 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.