You are here

public function CKEditor::getDefaultSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/ckeditor/src/Plugin/Editor/CKEditor.php \Drupal\ckeditor\Plugin\Editor\CKEditor::getDefaultSettings()

Returns the default settings for this configurable text editor.

Return value

array An array of settings as they would be stored by a configured text editor entity (\Drupal\editor\Entity\Editor).

Overrides EditorBase::getDefaultSettings

File

core/modules/ckeditor/src/Plugin/Editor/CKEditor.php, line 109
Contains \Drupal\ckeditor\Plugin\Editor\CKEditor.

Class

CKEditor
Defines a CKEditor-based text editor for Drupal.

Namespace

Drupal\ckeditor\Plugin\Editor

Code

public function getDefaultSettings() {
  return array(
    'toolbar' => array(
      'rows' => array(
        // Button groups.
        array(
          array(
            'name' => t('Formatting'),
            'items' => array(
              'Bold',
              'Italic',
            ),
          ),
          array(
            'name' => t('Links'),
            'items' => array(
              'DrupalLink',
              'DrupalUnlink',
            ),
          ),
          array(
            'name' => t('Lists'),
            'items' => array(
              'BulletedList',
              'NumberedList',
            ),
          ),
          array(
            'name' => t('Media'),
            'items' => array(
              'Blockquote',
              'DrupalImage',
            ),
          ),
          array(
            'name' => t('Tools'),
            'items' => array(
              'Source',
            ),
          ),
        ),
      ),
    ),
    'plugins' => array(),
  );
}