Paste HTML failed in bricks builder
-
Hi,
I have a windpress pro version, with latest bricks version and latest windpress version.
It’s a Chrome Issue (works in Opera)
Chrome version 140.0.7339.134 (Build officiel) Mac OS (arm64)
Paste html failed (chrome security setup ok: pasting allowed). the error occurs in the js console :
Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘insertAdjacentElement’)
the error occurs around this part :m.id = "windpressbricks-html2bricks-context-menu",
m.classList.add("sep"),
m.innerHTML = '<span class="label">Paste HTML</span><span class="shortcut">CTRL + SHIFT + V</span>',
m.addEventListener("click", T);
var Kt = document.querySelector('#bricks-panel-header>ul.actions>li[data-balloon="Paste (All)"]')
, p = document.createElement("li");
p.dataset.balloon = "Paste HTML",
p.dataset.balloonPos = "bottom-right",
p.innerHTML =<br> <span class="bricks-svg-wrapper"><br> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon icon-tabler icons-tabler-outline icon-tabler-brand-html5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 4l-2 14.5l-6 2l-6 -2l-2 -14.5z" /><path d="M15.5 8h-7l.5 4h6l-.5 3.5l-2.5 .75l-2.5 -.75l-.1 -.5" /></svg><br> </span><br>,
p.addEventListener("click", T);
var z = () => {
L.classList.remove("sep"),
L.insertAdjacentElement("afterend", m),
Kt.insertAdjacentElement("afterend", p)
}
, Rt = () => {
L.classList.add("sep"),
m.remove(),
p.remove()
}
;
w("module.html2bricks.copy-paste", !0).value && z(),
F( () => w("module.html2bricks.copy-paste", !0).value, t => {
t ? z() : Rt()
}
),
d("Module loaded!", {
module: "html2bricks"
});
Please help- This topic was modified 7 months, 3 weeks ago by .
- This topic was modified 7 months, 3 weeks ago by .
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Paste HTML failed in bricks builder’ is closed to new replies.