/home/techb158/balacoffee.com/wp-content/plugins/wpforms/assets/pro/js/admin
NameSizeModeActions
builder/-0755rm
education/-0755rm
builder-conditional-logic-core.js217940644editdlrm
builder-conditional-logic-core.min.js94450644editdlrm
dashboard-widget.js152610644editdlrm
dashboard-widget.min.js76280644editdlrm
edit-entry.js102300644editdlrm
edit-entry.min.js48290644editdlrm
entries.js25620644editdlrm
entries.min.js12140644editdlrm
print-entry.js70370644editdlrm
print-entry.min.js33290644editdlrm
settings-access.js104150644editdlrm
settings-access.min.js41630644editdlrm
tools-entries-export.js121030644editdlrm
tools-entries-export.min.js66270644editdlrm
view-entry.js22980644editdlrm
view-entry.min.js9190644editdlrm
Edit: /home/techb158/balacoffee.com/wp-content/plugins/wpforms/assets/pro/js/admin/view-entry.js (2298B)
/** * View single entry page. * * @since 1.7.0 */ 'use strict'; var WPFormsViewEntry = window.WPFormsViewEntry || ( function( document, window, $ ) { // eslint-disable-line no-unused-vars /** * Public functions and properties. * * @since 1.7.0 * * @type {object} */ var app = { /** * Start the engine. * * @since 1.7.0 */ init: function() { // Document ready. $( app.ready ); }, /** * Document ready. * * @since 1.7.0 */ ready: function() { app.loadAllRichTextFields(); }, /** * Load all Rich Text fields. * * @since 1.7.0 */ loadAllRichTextFields: function() { $( '.wpforms-entry-field-value-richtext' ).each( function() { var iframe = this, $iframe = $( this ); $iframe.on( 'load', function() { app.loadRichTextField( iframe ); } ); $iframe.attr( 'src', $iframe.data( 'src' ) ); } ); }, /** * Rich Text field iframe onload handler. * * @since 1.7.0 * * @param {object} obj Iframe element. */ loadRichTextField: function( obj ) { // Replicate `font-family` from the admin page to the iframe document. $( obj.contentWindow.document.documentElement ).find( 'body' ).css( 'font-family', $( 'body' ).css( 'font-family' ) ); app.resizeRichTextField( obj ); app.addLinksAttr( obj ); }, /** * Resize Rich Text field. * * @since 1.7.0 * * @param {object} obj Iframe element. */ resizeRichTextField: function( obj ) { if ( ! obj || ! obj.contentWindow ) { return; } var doc = obj.contentWindow.document.documentElement || false; if ( ! doc ) { return; } var height = doc.scrollHeight; height += doc.scrollWidth > doc.clientWidth ? 20 : 0; obj.style.height = height + 'px'; }, /** * Add links attributes inside iframe. * * @since 1.7.0 * * @param {object} obj Iframe element. */ addLinksAttr: function( obj ) { $( obj ).contents().find( 'a' ).each( function() { var $this = $( this ); $this.attr( 'rel', 'noopener' ); if ( ! $this.attr( 'target' ) ) { $this.attr( 'target', '_top' ); } } ); }, }; // Provide access to public functions/properties. return app; }( document, window, jQuery ) ); WPFormsViewEntry.init();