File "editor.js"
Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/sureforms/inc/page-builders/elementor/assets/editor.js
File size: 658 bytes
MIME-type: text/plain
Charset: utf-8
document.addEventListener( 'DOMContentLoaded', function () {
if ( typeof elementor === 'undefined' ) {
return;
}
// Form edit link
elementor.channels.editor.on( 'sureforms:form:edit', function ( view ) {
const block_id = view.elementSettingsModel.get( 'srfm_form_block' );
if ( ! block_id ) {
return;
}
const win = window.open(
srfmElementorData.admin_url +
`post.php?post=${ block_id }&action=edit`,
'_blank'
);
win.focus();
} );
// Form create link
elementor.channels.editor.on( 'sureforms:form:create', function () {
const win = window.open( srfmElementorData.add_new_form_url, '_blank' );
win.focus();
} );
} );