WYSIWYG editor help – and edit window size

QuestionsWYSIWYG editor help – and edit window size
Adrian Bradshaw asked 9 years ago

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…

1 Answers
Abu Ghufran answered 9 years ago

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

Your Answer

6 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?