diff --git a/ckwordcount.install b/ckwordcount.install index bf7b658..b3ed192 100644 --- a/ckwordcount.install +++ b/ckwordcount.install @@ -9,7 +9,7 @@ function ckwordcount_requirements($phase) { $requirements = []; if ($phase == 'install' || $phase == 'runtime') { - $plugin_detected = file_exists(DRUPAL_ROOT . '/libraries/wordcount/plugin.js'); + $plugin_detected = file_exists(DRUPAL_ROOT . '/libraries/ckeditor.wordcount/wordcount/plugin.js'); if ($plugin_detected) { $requirements['wordcount'] = [ diff --git a/src/Plugin/CKEditorPlugin/Wordcount.php b/src/Plugin/CKEditorPlugin/Wordcount.php index 3e592f8..070c407 100644 --- a/src/Plugin/CKEditorPlugin/Wordcount.php +++ b/src/Plugin/CKEditorPlugin/Wordcount.php @@ -35,7 +35,7 @@ class Wordcount extends CKEditorPluginBase implements CKEditorPluginConfigurable * {@inheritdoc} */ public function getFile() { - return 'libraries/wordcount/plugin.js'; + return 'libraries/ckeditor.wordcount/wordcount/plugin.js'; } /**