1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Chore: Export extractNoteFromHTML from notes services library (#9086)

This commit is contained in:
pedr
2023-10-17 17:10:18 -03:00
committed by GitHub
parent d50d940f3c
commit c06ca87573
2 changed files with 57 additions and 26 deletions

View File

@ -48,7 +48,7 @@ type ImageObject = {
naturalHeight?: number;
};
export function getImageSizes(element: HTMLElement, forceAbsoluteUrls = false) {
export function getImageSizes(element: Document, forceAbsoluteUrls = false) {
const output: Record<string, ImageObject[]> = {};
const images = element.getElementsByTagName('img');