mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-21 17:56:21 +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",
|
||||
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
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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
BIN
public/placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue