Newer
Older
use QUI\Ckeditor\Plugins\Manager;
use QUI\System\Log;
QUI::$Ajax->registerFunction(
'package_quiqqer_ckeditor4_ajax_uploadComplete',
function ($File) {
$filePath = $File->getAttribute('filepath');
try {
$Manager->installPlugin($filePath);
} catch (\Exception $Exception) {
QUI::getMessagesHandler()->addError($Exception->getMessage());
"quiqqer.editors.ckeditor.plugins.upload"