Hi everyone!
I’m trying to manipulate the DOM in my plugin but i can’t do it. I’ve tryied to use the other version of the bubble Plugin API and it works! But i want to use the lastest version. Here is the code (preview tab):
function(instance, properties) {
const previewContainer = document.createElement(‘div’);
previewContainer.setAttribute(‘style’, ‘background-color: black; position: absolute; top: 0; left: 0; width: 100%; height: 100%;’);
const description = document.createElement(‘p’);
description.setAttribute(‘style’,‘text-align: center; color: white;’);
description.innerHTML = ‘My plugin description’;
previewContainer.appendChild(description);
instance.canvas.append(previewContainer);
}