public function SourceEditing::buildConfigurationForm in Drupal 10
File
- core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ SourceEditing.php, line 28
Class
- SourceEditing
- CKEditor 5 Source Editing plugin configuration.
Namespace
Drupal\ckeditor5\Plugin\CKEditor5PluginCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['allowed_tags'] = [
'#type' => 'textarea',
'#title' => $this
->t('Manually editable HTML tags'),
'#default_value' => implode(' ', $this->configuration['allowed_tags']),
'#description' => $this
->t('A list of HTML tags that can be used while editing source. It is only necessary to add tags that are not already supported by other enabled plugins. For example, if "Bold" is enabled, it is not necessary to add the <code><strong></code> tag, but it may be necessary to add <code><dl><dt><dd></code> in a format that does not have a definition list plugin, but requires definition list markup.'),
];
return $form;
}