function CKEditor5::getDefaultSettings

Same name in other branches
  1. 9 core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php \Drupal\ckeditor5\Plugin\Editor\CKEditor5::getDefaultSettings()
  2. 10 core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php \Drupal\ckeditor5\Plugin\Editor\CKEditor5::getDefaultSettings()

Overrides EditorBase::getDefaultSettings

1 call to CKEditor5::getDefaultSettings()
CKEditor5::buildConfigurationForm in core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php
Form constructor.

File

core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php, line 160

Class

CKEditor5
Defines a CKEditor 5-based text editor for Drupal.

Namespace

Drupal\ckeditor5\Plugin\Editor

Code

public function getDefaultSettings() {
    return [
        'toolbar' => [
            'items' => [
                'heading',
                'bold',
                'italic',
            ],
        ],
        'plugins' => [
            'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.