5 * Definition of \Drupal\ckeditor_widgets\Plugin\CKEditorPlugin\AnchorLink.
7 namespace Drupal\ckeditor_widgets\Plugin\CKEditorPlugin;
9 use Drupal\editor\Entity\Editor;
10 use Drupal\ckeditor\CKEditorPluginBase;
13 * Defines the "widgetbootstrap" plugin.
16 * id = "widgetbootstrap",
17 * label = @Translation("CKEditor Bootstrap Widgets"),
18 * module = "ckeditor_widgets"
21 class WidgetBootstrap extends CKEditorPluginBase {
24 * Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile().
27 return drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/plugin.js';
33 public function getDependencies(Editor $editor) {
39 public function getLibraries(Editor $editor) {
46 public function isInternal() {
51 * Implements \Drupal\ckeditor\Plugin\CKEditorPluginButtonsInterface::getButtons().
53 function getButtons() {
55 'widgetbootstrapLeftCol' => array(
56 'label' => $this->t('Insert left column box'),
57 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapLeftCol.png',
59 'widgetbootstrapRightCol' => array(
60 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapRightCol.png',
61 'label' => $this->t('Insert right column box'),
63 'widgetbootstrapTwoCol' => array(
64 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapTwoCol.png',
65 'label' => $this->t('Insert two column box'),
67 'widgetbootstrapThreeCol' => array(
68 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapThreeCol.png',
69 'label' => $this->t('Insert three column box'),
71 'widgetbootstrapAlert' => array(
72 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapAlert.png',
73 'label' => $this->t('Insert alert box'),
75 'widgetbootstrapAccordion' => array(
76 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapAccordion.png',
77 'label' => $this->t('Insert accordion box'),
85 public function getConfig(Editor $editor) {