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

Clipper: Improved clipping of images in HTML mode

This commit is contained in:
Laurent Cozic
2019-07-16 22:23:04 +01:00
parent 2361c5a5e7
commit 7239a2013c
4 changed files with 15 additions and 10 deletions

View File

@ -92,6 +92,8 @@ utils.resourceStatus = function(resourceInfo) {
}
utils.imageReplacement = function(src, resources, resourceBaseUrl) {
if (!Resource.isResourceUrl(src)) return null;
const resourceId = Resource.urlToId(src);
const result = resources[resourceId];
const resource = result ? result.item : null;