⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


change the height of the field editor tinymce?


  • Please log in to reply
4 replies to this topic

#1 vnt

vnt

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts

Posted 03 April 2012 - 07:14 AM

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

D.

#2 KaBaDaBrA

KaBaDaBrA

    grocery CRUD magician

  • Members
  • PipPipPip
  • 57 posts

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!!

#3 vnt

vnt

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts

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.

#4 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,166 posts

Posted 03 April 2012 - 05: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",
  ...
});


#5 vnt

vnt

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts

Posted 03 April 2012 - 06:31 PM

Thanks a lot




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users