Commit 4318d98e authored by xjm's avatar xjm

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
......@@ -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,
);
......
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