Problem with iframe Elementor in Frontend editor, library not find element, when i create canvas. Any idea? Thanks!
function setup() {
const canvasAudio = createCanvas(windowWidth, windowHeight);
canvasAudio.parent('audio_visualizers');
if (audioButton == true) {
toggleBtn = createButton("play");
toggleBtn.addClass("toggle-btn");
toggleBtn.parent('audio_visualizers');
toggleBtn.mousePressed(toggleAudio);
} else {
audio.loop()
}
fft = new p5.FFT();
}
In Elementor , DOM elements are created in an external window (iframe).