Commit 7649aa25 authored by Daniel Korte's avatar Daniel Korte Committed by phenaproxima

Issue #2833233 by Daniel Korte, Anybody: Use textarea instead of textfield in...

Issue #2833233 by Daniel Korte, Anybody: Use textarea instead of textfield in EntityEmbedDialog, to allow longer captions
parent 4826d646
......@@ -472,7 +472,8 @@ class EntityEmbedDialog extends FormBase {
if ($editor->getFilterFormat()->filters('filter_caption')->status) {
$form['attributes']['data-caption'] = [
'#title' => $this->t('Caption'),
'#type' => 'textfield',
'#type' => 'textarea',
'#rows' => 3,
'#default_value' => isset($entity_element['data-caption']) ? Html::decodeEntities($entity_element['data-caption']) : '',
'#element_validate' => ['::escapeValue'],
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment