877-GRID-666 24/7 online support 604, Tower A, New Trade Plaza, N.T., Hong Kong


* 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:
// comments is text data type
// 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