In my module, I've declared: $fields['bio']['label'] = 'Bio';
$fields['bio']['rows'] = 30;
I have fuel configured for CKEditor.
According to the Form docs, ['rows'] should allow me to adjust the display height for my rich text area. It doesn't seem to work though. Am I missing something?
So. If I want to customise the height of my body field in Pages (#vars--body), is there something in ./application/config/ I can edit to set along the lines of:
Comments
$fields['bio']['style'] = 'height: 300px';
It must be a cke thing. I'll investigate and report back...
This is probably worth adding to the repo.
In ./fuel/modules/fuel/assets/js/fuel/custom_fields.js add around line 132:
// add custom configs config = $.extend(config, $(elem).data()); var hasCKEditorImagePlugin = (config.extraPlugins && config.extraPlugins.indexOf('fuelimage') != -1); /*+++*/ config.height = $(elem).height(); //make cke height same as parent textarea dom height. CKEDITOR.replace(ckId, config);
$fields['bio']['style'] = 'height: 300px';
'fields' => array('body' => array('label' => lang('layout_field_body'), 'type' => 'textarea', 'description' => lang('layout_field_body_description'), 'rows'=>'40'))
'style' => 'height: 300px' doesn't seem to work but 'rows' is sufficient