Has anyone here integrated with Bricks Builder before? I’m specifically looking for a JavaScript event that triggers when a post or page is saved. Here’s an illustration of what I’m looking for (nome of them works of course):
// Listen for all events with "save" in the name
const possibleEventNames = ['bricks:save', 'bricks/save', 'bricksSave', 'post-save', 'editor:save'];
possibleEventNames.forEach(eventName => {
document.addEventListener(eventName, function(event) {
console.log(`Event "${eventName}" detected!`, event);
});
});