���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/admin.adimi/layout/bootstrap4/global_assets/js/demo_pages/ |
/* ------------------------------------------------------------------------------ * * # Trumbowyg editor * * Demo JS code for editor_trumbowyg.html page * * ---------------------------------------------------------------------------- */ // Setup module // ------------------------------ var Trumbowyg = function() { // // Setup module components // // Trumbowyg editor var _componentTrumbowyg = function() { if (!$().trumbowyg) { console.warn('Warning - trumbowyg.min.js is not loaded.'); return; } // Set custom icons path $.trumbowyg.svgPath = '../../../../global_assets/js/plugins/editors/trumbowyg/ui/icons.svg'; // Default initialization $('#trumbowyg_default').trumbowyg(); // Custom toolbar $('#trumbowyg_custom').trumbowyg({ btns: [ // ['formatting'], ['strong', 'em'], ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'], ['unorderedList', 'orderedList'], ['undo', 'redo'], // Only supported in Blink browsers ['insertImage', 'link'], ['viewHTML'], ['fullscreen'] ] }); // Custom plugins $('#trumbowyg_plugins').trumbowyg({ btns: [ ['base64'], ['foreColor', 'backColor'], ['insertAudio'], ['noembed'], ['preformatted'], ['template'], ['upload'], ['fullscreen'] ], plugins: { templates: [ { name: 'Template 1', html: '<p>I am a template!</p>' }, { name: 'Template 2', html: '<p>I am a different template!</p>' } ], upload: { serverPath: '', fileFieldName: 'image', headers: { '': '' }, urlPropertyName: '' } } }); }; // // Return objects assigned to module // return { init: function() { _componentTrumbowyg(); } } }(); // Initialize module // ------------------------------ document.addEventListener('DOMContentLoaded', function() { Trumbowyg.init(); });