Not sure if this is a bug, but I noticed that having textareas under a collapsed fieldset (using the field group module) doesn't take into account the rows attribute of the textarea, rendering all the textarea with a default height of 100px (which I believe is about 5 rows).

Comments

hanoii’s picture

Using TinyMCE 3.5.0.1

twod’s picture

Status: Active » Postponed (maintainer needs more info)

Do you mean the textarea itself or the height of TinyMCE?
Wysiwyg does not change the height or styling of the original textareas.

hanoii’s picture

Status: Postponed (maintainer needs more info) » Active

No, I mean the height of TinyMCE. Not sure if this is specific to this module or tinymce, but, the replacement of the textarea with TinyMCE seems to take into account the height dependent on the number of rows the original textarea was set to. 15 rows ends up in a larger tinymce than 5 rows textareas, which make sense. However, the textarea that's being replaced inside a nested fieldgroup doesn't take into account the rows of the textarea, it just ouputs what it seems to be a default height tinymce.

sboots’s picture

Subscribing. Experiencing the same problem; at some point - for rich text areas in field groups - they're being set to 100px height, regardless of the number of rows set.

Will keep troubleshooting and keep you posted if I discover anything.

alan d.’s picture

Sub. I guess that the hidden fields in the vertical tabs / fieldsets do not have a height attribute when tinymce.Editor.init() is called.

After failing to set the height via an external CSS, I hardcoded the heights via a form alter and this worked. Very simple form alter that updates two known single value fields:

    // Hardcode a height for the fieldset WYSIWYG.
    // @see node/1708390
    foreach (array('body', 'field_summary') as $field_name) {
      if (isset($form[$field_name][LANGUAGE_NONE][0])) {
        $elm = &$form[$field_name][LANGUAGE_NONE][0];
        $rows = empty($elm['#rows']) ? 10 : $elm['#rows'];
        $elm['#attributes']['style'][] = 'height: ' . intval($rows * 13) . 'px;';
      }
    }
Andreas Radloff’s picture

Had the same problem, added this to my admin theme css as a temporary fix:

.mceLayout, 
.mceLayout iframe {
    min-height: 300px;
}