diff --git a/script/schema.js b/script/schema.js index 6b5134f6..4c31bd4a 100644 --- a/script/schema.js +++ b/script/schema.js @@ -125,7 +125,8 @@ export default function getSpec() { align = 'center'; } return { - id: attrs.media, + // a relative ID might be preferred (see imgpaste plugin) + id: dom.dataset.relID || attrs.media, title: dom.getAttribute('alt'), width: attrs.w, height: attrs.h,