public function LetterSpacingCKEditorButton::getButtons in CKEditor Letter Spacing 8
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/ LetterSpacingCKEditorButton.php, line 29
Class
- LetterSpacingCKEditorButton
- Defines the "letterspacing" plugin.
Namespace
Drupal\ckeditor_ls\Plugin\CKEditorPluginCode
public function getButtons() {
return [
'letterspacing' => [
'label' => t('Letter spacing ckeditor button'),
'image_alternative' => [
'#type' => 'inline_template',
'#template' => '<a href="#" role="button" aria-label="">LS</a>',
],
],
];
}