[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
components
/
com_gridbox
/
libraries
/
ckeditor
/
js
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 anchor.js
2,216 B
SET
[ EDIT ]
|
[ DEL ]
📄 code.js
2,870 B
SET
[ EDIT ]
|
[ DEL ]
📄 dataTags.js
1,332 B
SET
[ EDIT ]
|
[ DEL ]
📄 gridboxImage.js
793 B
SET
[ EDIT ]
|
[ DEL ]
📄 gridboxPlugins.js
774 B
SET
[ EDIT ]
|
[ DEL ]
📄 gridboxVideo.js
754 B
SET
[ EDIT ]
|
[ DEL ]
📄 image.js
3,048 B
SET
[ EDIT ]
|
[ DEL ]
📄 justifyLeft.js
2,387 B
SET
[ EDIT ]
|
[ DEL ]
📄 link.js
2,960 B
SET
[ EDIT ]
|
[ DEL ]
📄 resizeEditor.js
1,301 B
SET
[ EDIT ]
|
[ DEL ]
📄 unlink.js
793 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: justifyLeft.js
/** * @package Gridbox * @author Balbooa http://www.balbooa.com/ * @copyright Copyright @ Balbooa * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ CKEDITOR.plugins.add('myJustifyLeft', { icons: 'justifyLeft', init: function(editor){ editor.addCommand('justifyLeftComand', { exec: function(editor){ var button = document.querySelector('#cke_'+editor.name+' .cke_button__myjustifyleft'); if (!button) { button = window.parent.document.querySelector('#cke_'+editor.name+' .cke_button__myjustifyleft'); } button.classList.add('cke_button_on'); button.closest('.cke_toolgroup').querySelectorAll('a[class*="cke_button__justify"]').forEach(function(el){ el.classList.remove('cke_button_on'); el.classList.add('cke_button_off'); }); editor.document.$.execCommand('justifyLeft', false, false); } }); editor.justifyLeftInterval = setInterval(function(){ if (editor.document && editor.document.$) { clearInterval(editor.justifyLeftInterval); var buttons = document.querySelectorAll('#cke_'+editor.name+' a[class*="cke_button__justify"]'), button = document.querySelector('#cke_'+editor.name+' .cke_button__myjustifyleft'); if (!button) { buttons = window.parent.document.querySelectorAll('#cke_'+editor.name+' a[class*="cke_button__justify"]'); button = window.parent.document.querySelector('#cke_'+editor.name+' .cke_button__myjustifyleft'); } buttons.forEach(function(el){ el.addEventListener('click', function(){ button.classList.remove('cke_button_on'); }) }); } }, 100); editor.ui.addButton('myJustifyLeft', { label: CKEDITOR.lang[CKEDITOR.lang.detect()].common.alignLeft, command: 'justifyLeftComand', toolbar: 'justify', icon: 'justifyLeft' }); } }); CKEDITOR.config.extraPlugins = CKEDITOR.config.extraPlugins ? CKEDITOR.config.extraPlugins+',myJustifyLeft' : 'myJustifyLeft';