Skip to content
Snippets Groups Projects
Commit e2470399 authored by Mark Miller's avatar Mark Miller
Browse files

redo the library path

parent 3029f8a3
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,9 @@ https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules
for further information.
Download the https://www.npmjs.com/package/ckeditor-widgetmenu into your
projects root `/libraries` directory. Verify that the package path is correct by
locating the following `plugin.js` file at
`/libraries/ckeditor_widgetmenu/plugin.js`
projects root `/libraries` directory. Ensure that the directory is named
`widget_menu`. Verify that the package path is correct by locating the following
`plugin.js` file at `/libraries/widget_menu/plugin.js`
CONFIGURATION
......
<?php
namespace Drupal\ck_widget_menu\Plugin\CKEditorPlugin;
namespace Drupal\ckeditor_widget_menu\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
......@@ -25,7 +25,7 @@ class CKEditorWidgetMenu extends CKEditorPluginBase {
public function getButtons() {
return [
'widget_menu' => [
'image' => base_path() . 'libraries/ckeditor_widgetmenu/icons/widget_menu.png',
'image' => base_path() . 'libraries/widget_menu/icons/widget_menu.png',
'label' => $this->t('Widget Menu'),
],
];
......@@ -35,7 +35,7 @@ class CKEditorWidgetMenu extends CKEditorPluginBase {
* {@inheritdoc}
*/
public function getFile() {
return 'libraries/ckeditor_widgetmenu/plugin.js';
return 'libraries/widget_menu/plugin.js';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment