Cut and Paste with images

Operating system

Windows

Joplin version

2.14.17

Desktop version info

Joplin 2.14.17 (prod, win32)

Client ID: 3320122366e740e6a1d998f1761d57a4
Sync Version: 3
Profile Version: 46
Keychain Supported: Yes

Revision: 094175c

Backup: 1.4.0

Editor

Markdown Editor

What issue do you have?

Joplin is for note taking... invariably the value grows as you share notes for collaboration... which may need to jump apps... for instance. You want to share a final set of finding to a team in email.

I can't seem to copy text and images into email (gmail specifically if that makes any difference)... I suspect this is works as designed but doesn't address the underlying workflow problem. You put all this time into your notes and can't share them into an email or word doc or presentation etc... Do we need a custom clipboard or something to solve? Hoping it's just user error/ignorance and there is a way to do this

2 Likes

I've tested pasting images in a few apps -- it seems to work in some and not in others.

Apps that can be pasted into

Specifically (copying from the rich text editor):

  • Paste into GMail on Linux: No images
  • Paste into LibreOffice Writer on Linux: Images work
  • Paste into Word on Windows 11: Images work
  • Paste into Outlook desktop on Windows 11: Images work
  • Paste into WordPad on Windows 11: No images
  • Paste into Word Online on Windows 11: No images

Possible reason why this is happening

I think it's because text copied to the clipboard (at least from the rich text editor) looks like this to a website:

{
   'text/html': '<div id="rendered-md">\n<p>The following is a&nbsp;<strong>test</strong> image:</p>\n<p><img src="file:///home/primary/.config/joplin-desktop/resources/bdef250506d9444cabe9f190358c8b98.png" alt="Screenshot from 2024-03-06 07-23-02.png"></p>\n<p>&nbsp;</p>\n<p>This is a test.</p>\n</div>',
   'text/plain': 'The following is a **test** image:\n\n![Screenshot from 2024-03-06 07-23-02.png](file:///home/primary/.config/joplin-desktop/resources/bdef250506d9444cabe9f190358c8b98.png)\n\n&nbsp;\n\nThis is a test.',
   'files': Empty FileList
}

Notice that above, the <img tags are specifie using file:// URLs, which can't be accessed by most/all websites.

Workaround

One workaround that worked for me (pasting into GMail) was to:

  1. Export the current note as HTML.
  2. Open the exported HTML file in a browser (tested with Firefox).
  3. Copy everything from the opened HTML file and paste it into GMail or another application.

@personalizedrefriger , would you mind creating an issue with this list of working and non-working apps please? We could check if there's a way to get it working in these other apps. Maybe by attaching the image objects to the clipboard?

3 Likes

I've created an issue for this on GitHub:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.