We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d8f3d9 commit 8fb93f3Copy full SHA for 8fb93f3
assets/js/campaign-editors/mjml/index.js
@@ -29,7 +29,7 @@ export default class MjmlEditor {
29
parent: place
30
})
31
32
- place.parentNode.parentNode.addEventListener("x-show-image-dialog", () => {
+ document.getElementById("mjml-editor-toolbar").addEventListener("x-show-image-dialog", () => {
33
document
34
.querySelector("[data-dialog-for=image]")
35
.dispatchEvent(new CustomEvent("x-show", { detail: {} }))
lib/keila_web/templates/campaign/_mjml_editor.html.heex
@@ -1,4 +1,4 @@
1
-<div id="mjml-editor-toolbar w-full" phx-update="ignore">
+<div id="mjml-editor-toolbar" class="w-full" phx-update="ignore">
2
<div class="wysiwyg--menu bg-white relative shadow z-10 flex overflow-x-auto mt-4">
3
<button
4
title={gettext("Insert image")}
0 commit comments