* Only available in the Premium & Ultimate version.
- Parameters:
- $col_name: column name
- Description:
- Turns simple text field into a word processor by replacing textarea with a rich text editor. Should only be used for text fields that allow a large amount of text such as notes and comment fields.
- Remark:
- The field must be a text data type. If not, use set_col_edittype and set edit type to “textarea” first.
- Example:
1 2 | // comments is text data type $dg->set_col_wysiwyg('comments'); |
1 2 | // news is not a text data type $dg->set_col_edittype('news', 'textarea')->set_col_wysiwyg('news'); |
You can set its width height using set_col_edit_dimension method.