Skip to content
Snippets Groups Projects

ISTWCMS-5638 Add liststyle plugin version 4.19 and make it work in editor

1 file
+ 4
28
Compare changes
  • Side-by-side
  • Inline
@@ -2,10 +2,9 @@
namespace Drupal\uw_ckeditor_plugins\Plugin\CKEditorPlugin;
use Drupal\Component\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
use Drupal\ckeditor\CKEditorPluginInterface;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\ckeditor\CKEditorPluginContextualInterface;
use Drupal\editor\Entity\Editor;
/**
* Defines the "List Style" plugin.
@@ -15,7 +14,7 @@ use Drupal\ckeditor\CKEditorPluginContextualInterface;
* label = @Translation("List Style")
* )
*/
class ListStylePlugin extends PluginBase implements CKEditorPluginInterface, CKEditorPluginContextualInterface {
class ListStylePlugin extends CKEditorPluginBase implements CKEditorPluginContextualInterface {
/**
* {@inheritdoc}
@@ -43,34 +42,11 @@ class ListStylePlugin extends PluginBase implements CKEditorPluginInterface, CKE
return $enabled;
}
/**
* {@inheritdoc}
*/
public function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getFile() {
if (file_exists(DRUPAL_ROOT . '/' . 'profiles/uw_base_profile/modules/features/uw_ckeditor_plugins/libraries/liststyle/plugin.js')) {
return 'profiles/uw_base_profile/modules/features/uw_ckeditor_plugins/libraries/liststyle/plugin.js';
}
return $this->getModulePath('uw_ckeditor_plugins') . '/libraries/liststyle/plugin.js';
}
/**
Loading