Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When is the Wysiwig generated when using Craftable PRO?

Tags:

laravel

I want to generate a WYSIWYG editor for my text field but am unsure how to do so in Laravel Craftable PRO package. In previous Craftable versions, I could achieve this by naming the column "body" (as described in the documentation: https://getcraftable.com/docs/8.0/explore-generator#form).

However, I can't find this information in the new Craftable PRO documentation (https://docs.craftable.pro/commands/crud-generator-command).

Does anyone know which field names are supported?

I tried using a text field, but it was generated as a textarea. It works when I name the field "body", but I also want to use other names, such as "bio" or "content".

like image 276
str Avatar asked Oct 16 '25 20:10

str


2 Answers


The supported field names for auto generation are content, body and text. For some reason it is missing from the documentation.

like image 168
odziomkovak Avatar answered Oct 18 '25 13:10

odziomkovak


I believe you should be able to swap the component in your generated code from <TextArea /> to <Wysiwyg />.

like image 32
timoransky Avatar answered Oct 18 '25 11:10

timoransky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!