mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 05:26:22 +00:00
cargar una imagen de sutty
This commit is contained in:
parent
accf2d7b80
commit
b9add8645b
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
BIN
public/placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue