Skip to content
Vlad Mitkovsky edited this page Feb 24, 2020 · 2 revisions

Custom JS Events in Live Composer

pageCodeUpdated

This event gets dispatched when the raw (JSON) code of the page changes. Useful when you need to rerender some components when the page updated.

Usage example (from a third-party plugin):

parent.document.addEventListener( 'pageCodeUpdated', function ( customEvent ) {
	console.log( "This message appears after page code updated" );
});`

Clone this wiki locally