Skip to content
Snippets Groups Projects
Commit 01edf03a authored by vbouchet's avatar vbouchet Committed by Chris Burge
Browse files

Issue #3185302 by D4K0, vbouchet, Chris Burge: Increase the maxlength of form...

Issue #3185302 by D4K0, vbouchet, Chris Burge: Increase the maxlength of form input fields for custom class(es) and inline styles
parent 926c99a6
Branches
Tags
No related merge requests found
......@@ -152,16 +152,19 @@ class ManageComponentAttributesForm extends FormBase {
'#type' => 'textfield',
'#title' => 'Class(es)',
'#description' => $this->t('Classes to be applied. Multiple classes should be separated by a space.'),
'#maxlength' => 512,
];
$form_partial_style = [
'#type' => 'textfield',
'#title' => 'Style',
'#description' => $this->t('Inline CSS styles. <em>In general, inline CSS styles should be avoided.</em>'),
'#maxlength' => 512,
];
$form_partial_data = [
'#type' => 'textarea',
'#title' => 'Data-* attributes',
'#description' => $this->t('Custom attributes, which are available to both CSS and JS.<br><br>Each attribute should be entered on its own line with a pipe (|) separating its name and its optional value:<br>data-test|example-value<br>data-attribute-with-no-value'),
'#maxlength' => 512,
];
if (!$empty_categories['allowed_block_attributes']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment