⚠ 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

Textarea



nzjason
  • profile picture
  • Member

Posted 06 December 2015 - 08:29 AM

Hi

I have just started to use Grocery CRUD and have a issue where fields that should have a textarea (edit and add) just have a text field.

There is no text editor display and it is a single text field not a textarea.

 

But there are some field thay this does work on, have checked and the fields in the DB are the same type for example text and yet text editor is displayed on some but not others?

 

Any advise would be great.


Amit Shah
  • profile picture
  • Member

Posted 10 December 2015 - 14:11 PM

Hi,

 

Welcome to the family of GC users.  Well if not mistakened, what you look is you need text areas for a certain fields and not textfield ..... well there's a simple solution .. change the field type to text rather then varchar... for text - GC shows up a WYSYWIG editor...

is you just need  text area and not a WYSYWIG - just use the following function

$crud->unset_texteditor($fieldName) .. that should show you textarea instead of WYSYWIG

 

Happy GCing :)