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 DrupalscaytPluginCKEditorPluginScayt. */ namespace DrupalscaytPluginCKEditorPlugin; use DrupalckeditorCKEditorPluginBase; use DrupaleditorEntityEditor; /** * Defines the "Scayt" plugin. * * @CKEditorPlugin( * id = "scayt", * label = @Translation("Scayt CKEditor") * ) */ class Scayt extends CKEditorPluginBase{ /** * Implements DrupalscaytPluginCKEditorPluginInterface::getDependencies(). */ function getDependencies(Editor $editor) { return array('panelbutton','floatpanel','menu','menubutton','dialogui','button'); } /** * Implements DrupalscaytPluginCKEditorPluginInterface::getLibraries(). */ function getLibraries(Editor $editor) { return array(); } /** * Implements DrupalscaytPluginCKEditorPluginInterface::isInternal(). */ function isInternal() { return FALSE; } /** * Implements DrupalscaytPluginCKEditorPluginInterface::getFile(). */ function getFile() { return 'libraries/scayt/plugin.js'; } /** * Implements DrupalscaytPluginCKEditorPluginButtonsInterface::getButtons(). */ function getButtons() { return array( 'Scayt' => array( 'label' => t('Spell Check'), 'image' => 'libraries/scayt/icons/scayt.png', ), ); } /** * Implements DrupalscaytPluginCKEditorPluginInterface::getConfig(). */ public function getConfig(Editor $editor) { return array(); } }
Sponsored by SupremePR