How to Render added classes/attributes from custom Controls on Bricks Elements inside Builder

I want to use the bricks/elements/{element_name}/controls to give my client an easy way to change styles on e.g. the text or heading element. While I am able to manipulate the output via the bricks/element/set_root_attributes or bricks/element/render_attributes Filter ( I want to add a class or attribute to the element), I am not able to get the element to display my changes inside the builder. Is there a function kind of like the ones for the frontend to manipulate the element inside the builder?

Here’s an image of my (on the frontend) working code. Please ignore the fact that I’m trying to add a lead-paragraph control. I know that you already got one. It was just a test.

Best Regards
Suat

I’m running into the same problem. It appears to be a bug—attributes (including classes) aren’t applying on the builder canvas.

1 Like