CKEditorTabber.php in CKEditor Tabber 8
File
src/Plugin/CKEditorPlugin/CKEditorTabber.php
View source
<?php
namespace Drupal\ckeditor_tabber\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class CKEditorTabber extends CKEditorPluginBase {
public function getConfig(Editor $editor) {
$config = array();
return $config;
}
public function getDependencies(Editor $editor) {
return array();
}
public function getFile() {
return drupal_get_path('module', 'ckeditor_tabber') . '/js/plugins/tabber/plugin.js';
}
public function getButtons() {
$path = drupal_get_path('module', 'ckeditor_tabber') . '/js/plugins/tabber/icons';
return array(
'Tabber' => array(
'label' => t('Add Tab'),
'image' => $path . '/tabber.png',
),
);
}
}