X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentity_embed%2Fsrc%2FPlugin%2FCKEditorPlugin%2FDrupalEntity.php;fp=web%2Fmodules%2Fcontrib%2Fentity_embed%2Fsrc%2FPlugin%2FCKEditorPlugin%2FDrupalEntity.php;h=2a6fa14b95db68b2fc3c5760383569e2bcd32cec;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/entity_embed/src/Plugin/CKEditorPlugin/DrupalEntity.php b/web/modules/contrib/entity_embed/src/Plugin/CKEditorPlugin/DrupalEntity.php new file mode 100644 index 000000000..2a6fa14b9 --- /dev/null +++ b/web/modules/contrib/entity_embed/src/Plugin/CKEditorPlugin/DrupalEntity.php @@ -0,0 +1,47 @@ +getTypeSetting('entity_type'); + return $button; + } + + /** + * {@inheritdoc} + */ + public function getFile() { + return drupal_get_path('module', 'entity_embed') . '/js/plugins/drupalentity/plugin.js'; + } + + /** + * {@inheritdoc} + */ + public function getConfig(Editor $editor) { + return array( + 'DrupalEntity_dialogTitleAdd' => t('Insert entity'), + 'DrupalEntity_dialogTitleEdit' => t('Edit entity'), + 'DrupalEntity_buttons' => $this->getButtons(), + ); + } + +}