Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The CSS classes textfield has a 'maxlength' of 255.
$form['css']['css_classes'] = array(
'#type' => 'textfield',
'#title' => t('CSS classes'),
'#default_value' => $edit->settings['css_classes'],
'#size' => 40,
'#maxlength' => 255,
'#description' => t('Adds CSS classes to the "styles" droplist. Format is: <title>=<class>;<br/> Example: Header 1=header1;Header 2=header2;Header 3=header3 (note: no trailing \';\')<br />Leave blank to automatically import list of CSS classes from style sheet.')
);
For more complex sites this isn't enough space to enter all the classes and getting the list made from the CSS file isn't an option for me. Is there a reason for this? Can it be a textarea without a limit?
Comment | File | Size | Author |
---|---|---|---|
#1 | tinymce-css-classes-textarea.patch | 931 bytes | sym |
Comments
Comment #1
sym CreditAttribution: sym commentedPatch, tested and working that does this.
Comment #2
Mupsi