X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fckeditor_widgets%2Fsrc%2FPlugin%2FCKEditorPlugin%2FWidgetTemplateMenu.php;fp=web%2Fmodules%2Fcontrib%2Fckeditor_widgets%2Fsrc%2FPlugin%2FCKEditorPlugin%2FWidgetTemplateMenu.php;h=f5db7c19784ebe8dc43bb2cd34a3fff7a3618949;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/ckeditor_widgets/src/Plugin/CKEditorPlugin/WidgetTemplateMenu.php b/web/modules/contrib/ckeditor_widgets/src/Plugin/CKEditorPlugin/WidgetTemplateMenu.php new file mode 100644 index 000000000..f5db7c197 --- /dev/null +++ b/web/modules/contrib/ckeditor_widgets/src/Plugin/CKEditorPlugin/WidgetTemplateMenu.php @@ -0,0 +1,84 @@ + array( + 'label' => $this->t('Insert media'), + 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/oembed.png', + ), + 'codeSnippet' => array( + 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/codesnippet.png', + 'label' => $this->t('Insert code snippet'), + ), + 'leaflet' => array( + 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/leaflet.png', + 'label' => $this->t('Insert leaflet map'), + ), + 'FontAwesome' => array( + 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/fontawesome.png', + 'label' => $this->t('Insert Font Awesome icon'), + ), + 'WidgetTemplateMenu' => array( + 'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/icons/widgettemplatemenu.png', + 'label' => $this->t('Add Template Menu'), + ), + ); + } + + /** + * {@inheritdoc} + */ + public function getConfig(Editor $editor) { + return array(); + } +}