Hi.
I have upgraded to the full version of PHPGrid (well worth the price!).
I'm struggling to get the WYSIWYG editor to work. I have the field hidden in the grid and shown in the edit window, but the WYSIWYG editor doesn't show. My field definition is :
$col = array();
$col["title"] = "Text";
$col["name"] = "Message";
$col["width"] = "255";
$col["editable"] = true;
// don't show this column in list, but in edit/add mode
$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);
$col["edittype"] = "textarea";
$col["editoptions"] = array("rows"=>30, "cols"=>100);
$col["formatter"] = "wysiwyg";
$cols[] = $col;
Also, how can I set the dimensions of the edit window when it opens?
Thanks in advance…
Please make sure you included ckeditor js file.
<script src="../../lib/js/ckeditor/ckeditor.js" type="text/javascript"></script>
Reder demos/integration/html-editor.php and let me know if not resolved.
For edit dialog dimensions,
$opt["edit_options"]['width']='520';
$g->set_options($opt);
Height is auto calculated, and you can also set in similar way.
Ref: demos/editing/dialog-layout.php