/
var
/
softaculous
/
sitepad
/
editor
/
site-admin
/
js
/
/var/softaculous/sitepad/editor/site-admin/js
mkdir
upload
Name
Size
Mode
Actions
accordion.js
2955
0644
edit
dl
rm
accordion.min.js
835
0644
edit
dl
rm
admin-custom.js
5408
0644
edit
dl
rm
bootstrap.min.js
58072
0644
edit
dl
rm
code-editor.js
11589
0644
edit
dl
rm
code-editor.min.js
3169
0644
edit
dl
rm
color-picker.js
9825
0644
edit
dl
rm
color-picker.min.js
3521
0644
edit
dl
rm
comment.js
2797
0644
edit
dl
rm
comment.min.js
1247
0644
edit
dl
rm
common.js
42770
0644
edit
dl
rm
common.min.js
15378
0644
edit
dl
rm
custom-background.js
3345
0644
edit
dl
rm
custom-background.min.js
1148
0644
edit
dl
rm
customize-controls.js
290802
0644
edit
dl
rm
customize-controls.min.js
111980
0644
edit
dl
rm
customize-nav-menus.js
109011
0644
edit
dl
rm
customize-nav-menus.min.js
46465
0644
edit
dl
rm
edit-comments.js
28556
0644
edit
dl
rm
edit-comments.min.js
15070
0644
edit
dl
rm
editor-expand.js
42479
0644
edit
dl
rm
editor-expand.min.js
13518
0644
edit
dl
rm
editor.js
45312
0644
edit
dl
rm
editor.min.js
13430
0644
edit
dl
rm
gallery.js
5640
0644
edit
dl
rm
gallery.min.js
3842
0644
edit
dl
rm
image-edit.js
29296
0644
edit
dl
rm
image-edit.min.js
10225
0644
edit
dl
rm
inline-edit-post.js
16309
0644
edit
dl
rm
inline-edit-post.min.js
7329
0644
edit
dl
rm
inline-edit-tax.js
7703
0644
edit
dl
rm
inline-edit-tax.min.js
2889
0644
edit
dl
rm
iris.min.js
23608
0644
edit
dl
rm
language-chooser.js
875
0644
edit
dl
rm
language-chooser.min.js
374
0644
edit
dl
rm
link.js
3877
0644
edit
dl
rm
link.min.js
1646
0644
edit
dl
rm
media-gallery.js
1221
0644
edit
dl
rm
media-gallery.min.js
537
0644
edit
dl
rm
media-upload.js
3465
0644
edit
dl
rm
media-upload.min.js
1123
0644
edit
dl
rm
media.js
5229
0644
edit
dl
rm
media.min.js
1867
0644
edit
dl
rm
nav-menu.js
42477
0644
edit
dl
rm
nav-menu.min.js
21248
0644
edit
dl
rm
password-strength-meter.js
3175
0644
edit
dl
rm
password-strength-meter.min.js
769
0644
edit
dl
rm
post.js
37388
0644
edit
dl
rm
post.min.js
18305
0644
edit
dl
rm
postbox.js
11767
0644
edit
dl
rm
postbox.min.js
4185
0644
edit
dl
rm
revisions.js
33792
0644
edit
dl
rm
revisions.min.js
17926
0644
edit
dl
rm
set-post-thumbnail.js
843
0644
edit
dl
rm
set-post-thumbnail.min.js
533
0644
edit
dl
rm
svg-painter.js
5524
0644
edit
dl
rm
svg-painter.min.js
2410
0644
edit
dl
rm
tags-box.js
11093
0644
edit
dl
rm
tags-box.min.js
3145
0644
edit
dl
rm
tags-suggest.js
5238
0644
edit
dl
rm
tags-suggest.min.js
2173
0644
edit
dl
rm
tags.js
4348
0644
edit
dl
rm
tags.min.js
1711
0644
edit
dl
rm
theme.js
54384
0644
edit
dl
rm
theme.min.js
26612
0644
edit
dl
rm
trail.js
4498
0644
edit
dl
rm
updates.js
80505
0644
edit
dl
rm
updates.min.js
35804
0644
edit
dl
rm
user-profile.js
12248
0644
edit
dl
rm
user-profile.min.js
6315
0644
edit
dl
rm
user-suggest.js
2321
0644
edit
dl
rm
user-suggest.min.js
679
0644
edit
dl
rm
word-count.js
7692
0644
edit
dl
rm
word-count.min.js
1508
0644
edit
dl
rm
wp-fullscreen-stub.js
680
0644
edit
dl
rm
wp-fullscreen-stub.min.js
331
0644
edit
dl
rm
xfn.js
7712
0644
edit
dl
rm
xfn.min.js
3504
0644
edit
dl
rm
Edit:
/var/softaculous/sitepad/editor/site-admin/js/media-upload.js
(3465B)
/** * Contains global functions for the media upload within the post edit screen. * * Updates the ThickBox anchor href and the ThickBox's own properties in order * to set the size and position on every resize event. Also adds a function to * send HTML or text to the currently active editor. * * @file * @since 2.5.0 * @output site-admin/js/media-upload.js * * @requires jQuery */ /* global tinymce, QTags, wpActiveEditor, tb_position */ /** * Sends the HTML passed in the parameters to TinyMCE. * * @since 2.5.0 * * @global * * @param {string} html The HTML to be sent to the editor. * @returns {void|boolean} Returns false when both TinyMCE and QTags instances * are unavailable. This means that the HTML was not * sent to the editor. */ window.send_to_editor = function( html ) { var editor, hasTinymce = typeof tinymce !== 'undefined', hasQuicktags = typeof QTags !== 'undefined'; // If no active editor is set, try to set it. if ( ! wpActiveEditor ) { if ( hasTinymce && tinymce.activeEditor ) { editor = tinymce.activeEditor; window.wpActiveEditor = editor.id; } else if ( ! hasQuicktags ) { return false; } } else if ( hasTinymce ) { editor = tinymce.get( wpActiveEditor ); } // If the editor is set and not hidden, insert the HTML into the content of the // editor. if ( editor && ! editor.isHidden() ) { editor.execCommand( 'mceInsertContent', false, html ); } else if ( hasQuicktags ) { // If quick tags are available, insert the HTML into its content. QTags.insertContent( html ); } else { // If neither the TinyMCE editor and the quick tags are available, add the HTML // to the current active editor. document.getElementById( wpActiveEditor ).value += html; } // If the old thickbox remove function exists, call it. if ( window.tb_remove ) { try { window.tb_remove(); } catch( e ) {} } }; (function($) { /** * Recalculates and applies the new ThickBox position based on the current * window size. * * @since 2.6.0 * * @global * * @returns {Object[]} Array containing jQuery objects for all the found * ThickBox anchors. */ window.tb_position = function() { var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 833 < width ) ? 833 : width, adminbar_height = 0; if ( $('#wpadminbar').length ) { adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 ); } if ( tbWindow.length ) { tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'}); if ( typeof document.body.style.maxWidth !== 'undefined' ) tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'}); } /** * Recalculates the new height and width for all links with a ThickBox class. * * @since 2.6.0 */ return $('a.thickbox').each( function() { var href = $(this).attr('href'); if ( ! href ) return; href = href.replace(/&width=[0-9]+/g, ''); href = href.replace(/&height=[0-9]+/g, ''); $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) ); }); }; // Add handler to recalculates the ThickBox position when the window is resized. $(window).resize(function(){ tb_position(); }); })(jQuery);
Save
cmd:
run