????JFIF??x?x????'
Server IP : 104.21.96.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/wpforms-lite/assets/js/integrations/elementor/ |
Upload File : |
/* global $e, elementor */ // noinspection ES6ConvertVarToLetConst /** * WPForms script for editor context. * * @since 1.9.6 */ var WPFormsElementorEditorContext = window.WPFormsElementorEditorContext || ( function( document, window, $ ) { // eslint-disable-line no-var // noinspection JSUnusedGlobalSymbols /** * Public functions and properties. * * @since 1.9.6 * * @type {Object} */ const app = { /** * Start the engine. * * @since 1.9.6 */ init() { app.events(); }, /** * Register JS events. * * @since 1.9.6 */ events() { $( window ).on( 'elementor/init', function() { // To add action on save event, we should use hookUI.After. $e.hooks.registerUIAfter( new class extends $e.modules.hookUI.After { // noinspection JSUnusedGlobalSymbols getCommand() { return 'document/save/save'; } // noinspection JSUnusedGlobalSymbols getId() { return 'wpforms-elementor-editor-context-after-save'; } // noinspection JSUnusedGlobalSymbols getConditions() { return true; } apply() { // Save custom themes in a preview window. const previewWindow = elementor.$preview[ 0 ]?.contentWindow; if ( previewWindow ) { previewWindow.WPFormsElementorThemes.saveCustomThemes(); } } } ); } ); }, }; return app; }( document, window, jQuery ) ); // Initialize. WPFormsElementorEditorContext.init();