You are here

private function CodeMirror::options in CKEditor CodeMirror 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/CKEditorPlugin/CodeMirror.php \Drupal\ckeditor_codemirror\Plugin\CKEditorPlugin\CodeMirror::options()

Additional settings options.

Return value

array An array of settings options and their descriptions.

2 calls to CodeMirror::options()
CodeMirror::getConfig in src/Plugin/CKEditorPlugin/CodeMirror.php
Returns the additions to CKEDITOR.config for a specific CKEditor instance.
CodeMirror::settingsForm in src/Plugin/CKEditorPlugin/CodeMirror.php
Returns a settings form to configure this CKEditor plugin.

File

src/Plugin/CKEditorPlugin/CodeMirror.php, line 128

Class

CodeMirror
Defines the "CodeMirror" plugin.

Namespace

Drupal\ckeditor_codemirror\Plugin\CKEditorPlugin

Code

private function options() : array {
  return [
    'lineNumbers' => $this
      ->t('Show line numbers.'),
    'lineWrapping' => $this
      ->t('Enable line wrapping.'),
    'matchBrackets' => $this
      ->t('Highlight matching brackets.'),
    'autoCloseTags' => $this
      ->t('Close tags automatically.'),
    'autoCloseBrackets' => $this
      ->t('Close brackets automatically.'),
    'enableSearchTools' => $this
      ->t('Enable search tools.'),
    'enableCodeFolding' => $this
      ->t('Enable code folding.'),
    'enableCodeFormatting' => $this
      ->t('Enable code formatting.'),
    'autoFormatOnStart' => $this
      ->t('Format code on start.'),
    'autoFormatOnModeChange' => $this
      ->t('Format code each time source is opened.'),
    'autoFormatOnUncomment' => $this
      ->t('Format code when a line is uncommented.'),
  ];
}