elFinder.php in elFinder file manager 8.2
File
src/Plugin/CKEditorPlugin/elFinder.php
View source
<?php
namespace Drupal\elfinder\Plugin\CKEditorPlugin;
use Drupal\editor\Entity\Editor;
use Drupal\ckeditor\CKEditorPluginBase;
class elFinder extends CKEditorPluginBase {
public function getFile() {
return drupal_get_path('module', 'elfinder') . '/editors/ckeditor/ckeditor.callback.js';
}
public function getConfig(Editor $editor) {
return array(
'filebrowserBrowseUrl' => \Drupal::url('elfinder'),
'elFinderImageIcon' => drupal_get_path('module', 'ckeditor') . '/js/plugins/drupalimage/image.png',
);
}
public function getButtons() {
return array(
'elFinderImage' => array(
'label' => t('elFinder Image'),
'image' => drupal_get_path('module', 'ckeditor') . '/js/plugins/drupalimage/image.png',
),
);
}
}
Classes
Name |
Description |
elFinder |
Defines elFinder plugin for CKEditor. |