Problem with images using rich-text editor

If I use a standard editor and paste an image from the clipboard (say in Windows), it creates a legit entry like:


When synced, I can see it on my iPad just fine.

Now I switch to the rich editor. If I don't do anything, this image stays as is. However, if I resize it by dragging the corner, it generates this code:

<img src="file://C:/Users/My%20Name/.config/joplin-desktop/resources/44a441caa2a54954878a3233ac355679.png?t=1607463897224" alt="00c184081521595338b54ca3bc80769b.png" width="636" height="517">

This is obviously wrong because it explicitly references my user folder, and, indeed, after syncing, I cannot see it anywhere else.

Now, when I paste from clipboard directly into rich-text and do not do any resizing, I get this:


which is also wrong.

So, the conclusion is that the current rich-text editor does not handle images well.

Joplin 1.4.19 (prod, win32)

Client ID: 5fba6475197f40cca19ec4fe8027582c
Sync Version: 2
Profile Version: 34
Keychain Supported: Yes

Revision: de123ee58 (master)

1 Like

Could you provide the steps, one by one, to replicate this issue? Because in my case it doesn't do it, after I resize the image it converts it to eg <img src=":/0ed3a8d22d5c496da1dfa188a036198b" width="296" height="444"> which is valid.

  1. In MD editor mode, insert an image or paste from clipboard. It shows up in preview just fine and is inserted with proper MD code. Sync.
  2. Switch to rich editor. Resize. Sync.
  3. Switch back to MD - the entry is now html-like with the explicit reference to the home folder. So, of course, other devices do not see it.

I checked on two different PCs. One running the latest release, another the latest beta.

Ah yes, I see it now, it's a good old space-in-path issue. I'll fix it for the next release.

1 Like

Thanks for the prompt reply. I just looked through all my notes and many of them have the images scripts changed as discussed here. The code still contains correct pointers to resources, so it would be nice if the new update would also be able to change those back to the way they are supposed to be, so they will show on any device.

@laurent - thanks for a super-speedy fix! Obviously, this was very important for all of us using images. Everything works perfectly now!

P.S. and the orange banner can now be dismissed...
P.S.S. and the mouse-copy bug is fixed now

Joplin 1.5.7 (prod, win32)

Client ID: 3ad2972be07a418da5f2de2ac8aa2792
Sync Version: 2
Profile Version: 34
Keychain Supported: Yes

Revision: f1bbcea64 (master)

1 Like