set_col_wysiwyg()

* only available in Professional and above.

  • Parameters:
    • $col_name: column name
  • Description:
    • Turns simple text field into word processor by replacing textarea with rich text editor. Should only be used for text fields that allows 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.

phpgrid wysiwyg - form edit

phpgrid wysiwyg - inline edit

No related content found.

Tags: ,