edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Paste images or text #142

Closed mehtank closed 3 years ago

mehtank commented 3 years ago

Addresses one bullet point of #22 / a comment in #94. Allows pasting from the clipboard onto a page; makes an image object or text object as appropriate. Stored as a base64 data string, so presumably mongo restrictions on size apply? Currently no checking on size of pasted data.

edemaine commented 3 years ago

Thanks for this -- it was helpful in implementing #144. In particular, I included the "paste text" feature that this PR offers.

I won't be implementing actual image pasting (#22) until we have accounts in place so we can limit to them. As discussed in our last meeting, at that point I'll probably do that via a separate file server instead of synchronizing directly via Meteor pub/sub, as that would be much more efficient for larger files. (This is how Coauthor works.) So I'll close this PR, though again it was very useful!