HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/js_composer/modules/custom-css/assets/js/editor-events.js
( function () {
	document.addEventListener( 'wpbAceEditorContentChanged', function ( event ) {
		if ( !event.detail.wpb_css_editor ) {
			return;
		}

		updateFrontEditorCurrentValue( event );
	});

	document.addEventListener( 'wpbPageSettingRollBack', function ( event ) {
		if ( !event.detail.wpb_css_editor ) {
			return;
		}

		updateFrontEditorCurrentValue( event );
		vc.$custom_css.val( event.detail.wpb_css_editor.previousValue );
	});

	function updateFrontEditorCurrentValue ( event ) {
		var currentValue = event.detail.wpb_css_editor.currentValue;
		if ( vc.frame_window ) {
			vc.frame_window.vc_iframe.loadCustomCss( currentValue );
		}
	}
}() );