shortify-1.0.9/src/Plugin/Editor/PSShortcodeEditor.php
src/Plugin/Editor/PSShortcodeEditor.php
<?php
namespace Drupal\shortify\Plugin\Editor;
use Drupal\editor\Plugin\EditorBase;
use Drupal\editor\Entity\Editor;
/**
* Defines a text editor for Drupal.
*
* @Editor(
* id = "shortify_editor",
* label = @Translation("Short editor"),
* supports_content_filtering = FALSE,
* supports_inline_editing = FALSE,
* is_xss_safe = FALSE,
* supported_element_types = {
* "textarea"
* }
* )
*/
class PSShortcodeEditor extends EditorBase {
/**
* {@inheritdoc}
*/
public function getJSSettings (Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
$libs = [
'shortify/shortify_editor'
];
return $libs;
}
}