wysiwyg Archives | phpGrid - PHP Datagrid Create PHP grids in minutes, not hours. Fri, 12 Mar 2021 17:31:19 +0000 en-US hourly 1 CodeProjecthttps://wordpress.org/?v=7.0.3 129966043 WYSIWYG editor with font colorpicker https://phpgrid.com/example/wysiwyg/ Tue, 30 Aug 2016 03:16:57 +0000 http://phpgrid.com/?p=9020 Font colorpicker is now built right into the phpGrid Wysiwyg editor for both inline and form edit mode. By default, a text field is a simple plain textarea. Call set_col_wysiwyg() to enable the Wysiwyg feature. Note that the field must be a text data type. You can use set_col_edittype() function to change the edit type […]

The post WYSIWYG editor with font colorpicker appeared first on phpGrid - PHP Datagrid.

]]>

Font colorpicker is now built right into the phpGrid Wysiwyg editor for both inline and form edit mode. By default, a text field is a simple plain textarea. Call set_col_wysiwyg() to enable the Wysiwyg feature.

Note that the field must be a text data type. You can use set_col_edittype() function to change the edit type to “textarea” first.

1
$dg -> set_col_wysiwyg('comments');

Run Demo

The post WYSIWYG editor with font colorpicker appeared first on phpGrid - PHP Datagrid.

]]>
9020
set_col_wysiwyg() https://phpgrid.com/documentation/set_col_wysiwyg/ Wed, 08 Feb 2012 07:23:11 +0000 http://phpgrid.com/?p=1942 * 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 […]

The post set_col_wysiwyg() appeared first on phpGrid - PHP Datagrid.

]]>
* 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.

phpgrid wysiwyg - form edit

phpgrid wysiwyg - inline edit

The post set_col_wysiwyg() appeared first on phpGrid - PHP Datagrid.

]]>
1942