Cliparts are not visible in the frontend
jonnitto opened this issue · 1 comments
jonnitto commented
jonnitto commented
Currently, I solved this with this Javascript:
[...document.querySelectorAll('.sandstorm-mxgraph-diagram img')].forEach(
(image) => {
fetch(image.src)
.then((response) => response.text())
.then((svg) => {
image.parentNode.innerHTML = svg;
})
.catch(console.error.bind(console));
}
);