cargar una imagen de sutty

This commit is contained in:
f 2020-11-16 20:49:23 -03:00
parent accf2d7b80
commit b9add8645b
3 changed files with 4 additions and 4 deletions

View file

@ -83,8 +83,8 @@ const blocks = {
selector: "IMG", selector: "IMG",
createFn: editorEl => { createFn: editorEl => {
const el = document.createElement("IMG") const el = document.createElement("IMG")
el.src = "https://radio.sutty.nl/public/placeholder_992x992.png" el.src = "/public/placeholder.png"
el.alt = "Un hermoso álbum" el.alt = ""
return el return el
}, },
}, },

View file

@ -330,7 +330,7 @@ function cleanNode (node, contentEl) {
if (child.getAttribute("hspace")) child.removeAttribute("hspace") if (child.getAttribute("hspace")) child.removeAttribute("hspace")
if (child.align.length) child.removeAttribute("align") if (child.align.length) child.removeAttribute("align")
if (child.name.length) child.removeAttribute("name") if (child.name.length) child.removeAttribute("name")
if (!child.src.length) child.src = "https://radio.sutty.nl/public/placeholder_992x992.png" if (!child.src.length) child.src = "/public/placeholder.png"
} else if (child.tagName === "FONT") { } else if (child.tagName === "FONT") {
moveChildren(child, child.parentElement, child.nextSiling) moveChildren(child, child.parentElement, child.nextSiling)
child.parentElement.removeChild(child) child.parentElement.removeChild(child)

BIN
public/placeholder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB