⚠ 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

longtext type



victor
  • profile picture
  • Member

Posted 11 August 2012 - 22:45 PM

I was pleased when I saw your CRUD!!!
You are professional!
I have a question:
Why LONGTEXT field type does not uses the TinyMCE editor by default?


I'm sorry for the mistakes, I do not speak English.

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

Posted 12 August 2012 - 00:54 AM

Hello victor and welcome to the forum,

If a field is auto generated and it is not the one that you actually want you can easily change it to whatever you like . For more you can read http://www.grocerycrud.com/documentation/options_functions/change_field_type

In your case you can simply have:


$crud->change_field_type('your_field_name','text');


and the TinyMCE editor will appear as expected.

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

Posted 12 August 2012 - 01:03 AM

[b]Update: [/b]You can also change your code with this patch if you want to do it with the right way: https://github.com/scoumbourdis/grocery-crud/commit/c560afbbe85cd511519dee5dbb5f3ac350a2ea0f

victor
  • profile picture
  • Member

Posted 13 August 2012 - 11:39 AM

Thanks.