public function Anchor::getButtons in Panopoly WYSIWYG 8.2
NOTE: The keys of the returned array corresponds to the CKEditor button names. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.
Overrides CKEditorPluginButtonsInterface::getButtons
File
- src/
Plugin/ CKEditorPlugin/ Anchor.php, line 29
Class
- Anchor
- Defines the "panopoly_wysiwyg_anchor" plugin.
Namespace
Drupal\panopoly_wysiwyg\Plugin\CKEditorPluginCode
public function getButtons() {
return [
'panopoly_wysiwyg_anchor' => [
'label' => t('Anchor'),
'image' => drupal_get_path('module', 'panopoly_wysiwyg') . '/ckeditor/anchor/icons/anchor.png',
],
];
}