????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.117.172.251 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/js/ |
Upload File : |
( function( $ ) { // Insert shortcode into post editor fusionBuilderInsertIntoEditor = function( shortcode, editorID ) { var currentEditor = window.SCmoduleContentEditorMode, editorArea, editor; if ( 'tinymce' === window.SCmoduleContentEditorMode && ( '' === editorID || 'undefined' === typeof editorID ) ) { if ( 'undefined' !== typeof window.tinyMCE ) { // Set active editor editor = FusionPageBuilderApp.shortcodeGeneratorActiveEditor; editor.focus(); if ( 'excerpt' === editor.id ) { FusionPageBuilderApp.fromExcerpt = true; } // Insert shortcode window.tinyMCE.activeEditor.execCommand( 'mceInsertContent', false, shortcode ); window.tinyMCE.activeEditor.execCommand( 'mceCleanup', false ); } } else { if ( null === editorID || '' === editorID || 'undefined' === typeof editorID ) { editorArea = $( window.editorArea ); } else { editorArea = $( '#' + editorID ); } if ( 'excerpt' === editorArea.attr( 'id' ) ) { FusionPageBuilderApp.fromExcerpt = true; } if ( 'undefined' === typeof window.cursorPosition ) { if ( 0 === editorArea.getCursorPosition() ) { editorArea.val( shortcode + editorArea.val() ); } else if ( editorArea.val().length === editorArea.getCursorPosition() ) { editorArea.val( editorArea.val() + shortcode ); } else { editorArea.val( editorArea.val().slice( 0, editorArea.getCursorPosition() ) + shortcode + editorArea.val().slice( editorArea.getCursorPosition() ) ); } } else { editorArea.val( [ editorArea.val().slice( 0, window.cursorPosition ), shortcode, editorArea.val().slice( window.cursorPosition ) ].join( '' ) ); } } if ( false === FusionPageBuilderApp.manuallyAdded ) { FusionPageBuilderApp.shortcodeGeneratorActiveEditor = ''; } }; } )( jQuery ); function openShortcodeGenerator( trigger ) { // Get editor id from event.trigger. parent.parent var view, editorArea = '#' + trigger.parent().parent().find( '.wp-editor-area' ).attr( 'id' ); window.cursorPosition = 0; window.editorArea = editorArea; // Set shortcode generator flag FusionPageBuilderApp.shortcodeGenerator = true; // Get active editor mode if ( FusionPageBuilderApp.isTinyMceActive() ) { window.SCmoduleContentEditorMode = 'tinymce'; } else { window.SCmoduleContentEditorMode = 'html'; } // Get current cursor position ( for html editor ) if ( 'tinymce' !== window.SCmoduleContentEditorMode ) { window.cursorPosition = jQuery( editorArea ).getCursorPosition(); } view = new FusionPageBuilder.ModalView( { model: this.model, collection: FusionPageBuilderElements, attributes: { 'data-modal_view': 'all_elements_generator' }, view: this } ); jQuery( 'body' ).append( view.render().el ); } // Helper function to check the cursor position of text editor content field before the shortcode generator is opened ( function( $, undefined ) { $.fn.getCursorPosition = function() { var el = $( this ).get( 0 ), pos = 0, Sel, SelLength; if ( 'selectionStart' in el ) { pos = el.selectionStart; } else if ( 'selection' in document ) { el.focus(); Sel = document.selection.createRange(); SelLength = document.selection.createRange().text.length; Sel.moveStart( 'character', -el.value.length ); pos = Sel.text.length - SelLength; } return pos; }; })( jQuery );