⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
cms-1.dev-unit.com
/
core
/
assets
/
user
/
js
/
View File Name :
custom.js
(function ($) { "use strict"; jQuery(document).ready(function ($) { /* *************************************************** ==========Summernote initialization start========== ******************************************************/ $(".summernote").each(function (i) { let theight; let $summernote = $(this); if ($(this).data('height')) { theight = $(this).data('height'); } else { theight = 200; } $('.summernote').eq(i).summernote({ height: theight, dialogsInBody: true, dialogsFade: false, toolbar: [ ['style', ['style']], ['font', ['bold', 'underline', 'clear']], ['fontname', ['fontname']], ['fontsize', ['fontsize']], ['height', ['height']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], // ['insert', ['link', 'picture', 'video']], ['view', ['fullscreen', 'help']], ], popover: { image: [ ['image', ['resizeFull', 'resizeHalf', 'resizeQuarter', 'resizeNone']], ['float', ['floatLeft', 'floatRight', 'floatNone']], ['remove', ['removeMedia']] ], link: [ ['link', ['linkDialogShow', 'unlink']] ], table: [ ['add', ['addRowDown', 'addRowUp', 'addColLeft', 'addColRight']], ['delete', ['deleteRow', 'deleteCol', 'deleteTable']], ], air: [ ['color', ['color']], ['font', ['bold', 'underline', 'clear']], ['para', ['ul', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture']] ] }, callbacks: { onImageUpload: function(files) { // console.log(files); $(".request-loader").addClass('show'); let fd = new FormData(); fd.append('image', files[0]); $.ajax({ url: imgupload, method: 'POST', data: fd, contentType: false, processData: false, success: function(data) { // console.log(data); $summernote.summernote('insertImage', data); $(".request-loader").removeClass('show'); } }); } } }); }); }); }(jQuery));