Commit b452a83e authored by chris's avatar chris
Browse files

check file id

parent dd024cde
......@@ -31,11 +31,16 @@ export default {
let imageFile = node.document.get(node.imageFile)
el.attr('data-id', node.id)
const fileId = node.fileId
el.append(
$$('img')
.attr('src', node.actualFile)
.attr('data-fileid', fileId),
)
if (fileId) {
el.append(
$$('img')
.attr('src', node.actualFile)
.attr('data-fileid', fileId),
)
} else {
el.append($$('img').attr('src', node.actualFile))
}
el.append($$('figcaption').html(string))
},
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment