freescout
freescout copied to clipboard
Feature request: Paste images
One feature that I'm really missing from Helpscout is to be able to paste an image into a reply. I use it regularly for sending screenshots / snippets to customers. In FS the workflow becomes a bit more tedious.
More than happy to pay for it as a separate module.
First, my issue above wasn't very detailed. I examined this a bit more and it seems that pasting images from a local clipboard works just fine if they are links to publicly available images.
But pasting an image from the clipboard doesn't work if it is raw image data, like it is when it comes from a screenshot tool.
I did some digging on this.
Freescout 1.6.20 ships version 0.8.9 of Summernote wysisyg editor. Current version is 0.8.18 (these guys are not too strict about sematic versioning) and besides a bunch of new features, there has been some updates with the clipboard handling.
I've compared how the DOM looks like after pasting in two images in a text. One is created using a screen snippet tool and the other image was added to the clipboard by right clicking an image on the web and select Copy image
Here's what the DOM looks like in Freescout 1.6.20 / Summernote 0.8.9:
And here's the same thing but using the Summernote demo on their own home page, running 0.8.18
So one thought is that just upgrading to a later version of Summernote may solve the issue. To test if just upgrading the the frontend Summernote is enough I did one more experiment.
- Start writing a new message in Freescout
- Inspect the text area element in Chrome dev tools
- Manually add an inline image by rewriting an existing br tag to an img tag with an inline source
- Send the message
...and this works. Seems like the message handling in Freescout handles inline images just fine. This is what the message ended up looking like in my desktop email client (the image being a regional screenshot of the Google logo):
So I'm thinking that as first step to solving this, just upgrading to the newest Summernote may be the only change required.
Summernote code has been vivisected in FreeScout. So unfortunately we won't update it to the latest version, as crazy amount of time has already been spent on adjusting it. Feel free to update summernote code present in the FreeScout.
In my case, using Safari for instance, the image actually pastes correctly in the editor and is embedded as an attachment on public facing freescout, which is fine by me, but the email client (Apple Mail) isn't loading it :
Implemented as a module: https://freescout.net/module/embed-images/