diff --git a/app/assets/javascripts/01-types.js b/app/assets/javascripts/01-types.js index 369b650f..260f8072 100644 --- a/app/assets/javascripts/01-types.js +++ b/app/assets/javascripts/01-types.js @@ -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 }, }, diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index e7359d5b..e552a86e 100644 --- a/app/assets/javascripts/02-editor.js +++ b/app/assets/javascripts/02-editor.js @@ -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) diff --git a/public/placeholder.png b/public/placeholder.png new file mode 100644 index 00000000..3b8bd178 Binary files /dev/null and b/public/placeholder.png differ