I'm trying to build a scayt module to be able to use the CKEditor scayt Plugin. I tried to use this module but it did not work for me. https://github.com/nikhildodeja/scayt I created my own but I get a WSOD when I veiw a node creat page. The module is below. What am I doing wrong?
<?php
/**
* @file
* Definition of \Drupal\scayt\Plugin\CKEditorPlugin\Scayt.
*/
namespace Drupal\scayt\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
/**
* Defines the "Scayt" plugin.
*
* @CKEditorPlugin(
* id = "scayt",
* label = @Translation("Scayt CKEditor")
* )
*/
class Scayt extends CKEditorPluginBase{
/**
* Implements \Drupal\scayt\Plugin\CKEditorPluginInterface::getDependencies().
*/
function getDependencies(Editor $editor) {
return array('panelbutton','floatpanel','menu','menubutton','dialogui','button');
}
/**
* Implements \Drupal\scayt\Plugin\CKEditorPluginInterface::getLibraries().
*/
function getLibraries(Editor $editor) {
return array();
}
/**
* Implements \Drupal\scayt\Plugin\CKEditorPluginInterface::isInternal().
*/
function isInternal() {
return FALSE;
}
/**
* Implements \Drupal\scayt\Plugin\CKEditorPluginInterface::getFile().
*/
function getFile() {
return 'libraries/scayt/plugin.js';
}
/**
* Implements \Drupal\scayt\Plugin\CKEditorPluginButtonsInterface::getButtons().
*/
function getButtons() {
return array(
'Scayt' => array(
'label' => t('Spell Check'),
'image' => 'libraries/scayt/icons/scayt.png',
),
);
}
/**
* Implements \Drupal\scayt\Plugin\CKEditorPluginInterface::getConfig().
*/
public function getConfig(Editor $editor) {
return array();
}
}