⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

change the height of the field editor tinymce?



vnt

vnt
  • profile picture
  • Member

Posted 03 April 2012 - 07:14 AM

Hi,
how do I change the height of the field editor tinymce?

D.

KaBaDaBrA

KaBaDaBrA
  • profile picture
  • Member

Posted 03 April 2012 - 08:03 AM

Can do something like this using the callback_add_field


//CALLBACK
$this->grocery_crud->callback_add_field('address',array($this,'add_field_callback_1'));


//CALLBACK FUNCTION
function add_field_callback_1()
{
return '<textarea name="address" class="texteditor" style="height: 400px;"></textarea>';
}


Just change your height and voila!!

vnt

vnt
  • profile picture
  • Member

Posted 03 April 2012 - 08:23 AM

There is a problem,
The field is height: 400px but I don't see the editor!

Is there a way to change all text area of the project?

Thanks a lot
D.

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 03 April 2012 - 17:50 PM

Go to assets/grocery_crud/js/jquery_plugins/config/jquery.tine_mce.config.js and add the height parameter:


$('textarea.texteditor').tinymce({
height : "480",
...
});

vnt

vnt
  • profile picture
  • Member

Posted 03 April 2012 - 18:31 PM

Thanks a lot