1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-21 23:17:42 +02:00

Electron: Allowing opening and saving resource images

This commit is contained in:
Laurent Cozic
2018-02-07 20:23:17 +00:00
parent f91c52cdf7
commit fc0d227396
4 changed files with 39 additions and 3 deletions
ElectronClient/app/gui
ReactNativeClient/lib

@ -117,7 +117,7 @@ class MdToHtml {
if (mime == 'image/png' || mime == 'image/jpg' || mime == 'image/jpeg' || mime == 'image/gif') {
let src = './' + Resource.filename(resource);
if (this.resourceBaseUrl_ !== null) src = this.resourceBaseUrl_ + src;
let output = '<img title="' + htmlentities(title) + '" src="' + src + '"/>';
let output = '<img data-resource-id="' + resource.id + '" title="' + htmlentities(title) + '" src="' + src + '"/>';
return output;
}