Skip to content
Code-Schnipsel Gruppen Projekte
uploadComplete.php 553 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    QUI::$Ajax->registerFunction(
        'package_quiqqer_ckeditor4_ajax_uploadComplete',
        function ($File) {
    
            $filePath = $File->getAttribute('filepath');
    
            $Manager = new \QUI\Ckeditor\Plugins\Manager();
            try {
                $Manager->installPlugin($filePath);
            } catch (\Exception $Exception) {
                QUI::getMessagesHandler()->addError($Exception->getMessage());
    
                \QUI\System\Log::addError($Exception->getMessage());
    
        array('File'),
        "quiqqer.editors.ckeditor.plugins.upload"
    
    Florian Bogner's avatar
    Florian Bogner committed
    );