Skip to content
Snippets Groups Projects
Commit 4318d98e authored by Jess's avatar Jess
Browse files

Issue #2717599 by thpoul, effulgentsia, Wim Leers, helenc, criz,...

Issue #2717599 by thpoul, effulgentsia, Wim Leers, helenc, criz, shashikant_chauhan, snehi, zserno, pashupathi nath gajawada, ifrik, webchick, Jeff Burnz, xjm, valthebald, Bojhan, yoroy, mlewand: Text editors do not respect <textarea rows>: make that clear in the formatted text field widgets
parent 48dbd8f7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -20,6 +20,15 @@
*/
class TextareaWidget extends StringTextareaWidget {
/**
* {@inheritdoc}
*/
public function settingsForm(array $form, FormStateInterface $form_state) {
$element = parent::settingsForm($form, $form_state);
$element['rows']['#description'] = $this->t('Text editors (like CKEditor) may override this setting.');
return $element;
}
/**
* {@inheritdoc}
*/
......
......@@ -39,6 +39,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
'#type' => 'number',
'#title' => t('Summary rows'),
'#default_value' => $this->getSetting('summary_rows'),
'#description' => $element['rows']['#description'],
'#required' => TRUE,
'#min' => 1,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment