Skip to content

Javascript event when boxes are updated #9

Discussion options

You must be logged in to vote

Version 2.0.59 added a new offline.boxes.editorRrefreshed event:

// Register this event in any JS file that is available in the context of the editor.
window.document.addEventListener('offline.boxes.editorRefreshed', function (e) {
    // Re-initialize your dependencies here.
    initSliders();
});

Docs: https://docs.boxes.offline.ch/use-cases/editor-customization.html#injecting-additional-css-or-js

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobias-kuendig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants