3 namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
5 use Drupal\ckeditor\CKEditorPluginButtonsInterface;
6 use Drupal\ckeditor\CKEditorPluginCssInterface;
7 use Drupal\editor\Entity\Editor;
10 * Defines a "LlamaCss" plugin, with an associated "llama" CSS.
14 * label = @Translation("Llama CSS")
17 class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditorPluginCssInterface {
22 public function getButtons() {
25 'label' => t('Insert Llama CSS'),
33 public function getCssFiles(Editor $editor) {
35 drupal_get_path('module', 'ckeditor_test') . '/css/llama.css',
42 public function getFile() {
43 return drupal_get_path('module', 'ckeditor_test') . '/js/llama_css.js';