rows no working on block?

edited September 2014 in Modules
I am setting textarea type to be markitup, and then when i setting the rows and height of the textarea, i cannot make it work, any suggestion?

$block = new Fuel_block_layout('whatsnew_article_content');
$block->set_label('Article Content');
$block->set_group('article_block');
$block->add_field('left', array('label'=>'Column Left','type'=>'textarea','rows'=>1));
$block->add_field('center', array('label'=>'Column Center','type'=>'textarea','rows'=>1));
$block->add_field('right', array('label'=>'Column Right','type'=>'textarea','rows'=>1));
$config['blocks']['whatsnew_article_content'] = $block;

Comments

  • edited 9:04AM
    There is a default height and width set for the markitup textarea field which will override the cols and width. Instead, use the "style" attribute:
    'style' => 'width: 800px; height: 800px'
Sign In or Register to comment.