function CKEditor::getDefaultSettings
Same name in other branches
- 9 core/modules/ckeditor/src/Plugin/Editor/CKEditor.php \Drupal\ckeditor\Plugin\Editor\CKEditor::getDefaultSettings()
Overrides EditorBase::getDefaultSettings
File
-
core/
modules/ ckeditor/ src/ Plugin/ Editor/ CKEditor.php, line 120
Class
- CKEditor
- Defines a CKEditor-based text editor for Drupal.
Namespace
Drupal\ckeditor\Plugin\EditorCode
public function getDefaultSettings() {
return [
'toolbar' => [
'rows' => [
// Button groups.
[
[
'name' => $this->t('Formatting'),
'items' => [
'Bold',
'Italic',
],
],
[
'name' => $this->t('Links'),
'items' => [
'DrupalLink',
'DrupalUnlink',
],
],
[
'name' => $this->t('Lists'),
'items' => [
'BulletedList',
'NumberedList',
],
],
[
'name' => $this->t('Media'),
'items' => [
'Blockquote',
'DrupalImage',
],
],
[
'name' => $this->t('Tools'),
'items' => [
'Source',
],
],
],
],
],
'plugins' => [
'language' => [
'language_list' => 'un',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.