You are here

protected static function CodeMirrorPluginTrait::getAvailableButtons in The CodeMirror Editor 8

Returns a list of buttons available for CodeMirror.

Return value

array A list of buttons.

4 calls to CodeMirrorPluginTrait::getAvailableButtons()
CodeMirrorPluginTrait::buildCodeMirrorSettingsForm in src/CodeMirrorPluginTrait.php
Returns a form to configure settings for the CodeMirror plugin.
CodeMirrorPluginTrait::getDefaultCodeMirrorSettings in src/CodeMirrorPluginTrait.php
Returns the default settings for CodeMirror plugin.
TextEditorTest::testTextEditor in tests/src/FunctionalJavascript/TextEditorTest.php
Test callback.
WidgetTestTrait::testWidgetEditor in tests/src/FunctionalJavascript/WidgetTestTrait.php
Test callback.

File

src/CodeMirrorPluginTrait.php, line 18

Class

CodeMirrorPluginTrait
Provides a helper methods to for CodeMirror plugins.

Namespace

Drupal\codemirror_editor

Code

protected static function getAvailableButtons() {
  return [
    'bold',
    'italic',
    'underline',
    'strike-through',
    'list-numbered',
    'list-bullet',
    'link',
    'horizontal-rule',
    'undo',
    'redo',
    'clear-formatting',
    'enlarge',
    'shrink',
  ];
}