5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 17:11:41 +00:00

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",
createFn: editorEl => {
const el = document.createElement("IMG")
el.src = "https://radio.sutty.nl/public/placeholder_992x992.png"
el.alt = "Un hermoso álbum"
el.src = "/public/placeholder.png"
el.alt = ""
return el
},
},

View file

@ -315,7 +315,7 @@ function cleanNode (node, contentEl) {
&& contentEl.contains(parentEl)
)
parentEl = parentEl.parentElement
if (
parentEl
&& contentEl.contains(parentEl)
@ -330,7 +330,7 @@ function cleanNode (node, contentEl) {
if (child.getAttribute("hspace")) child.removeAttribute("hspace")
if (child.align.length) child.removeAttribute("align")
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") {
moveChildren(child, child.parentElement, child.nextSiling)
child.parentElement.removeChild(child)

BIN
public/placeholder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB