Hello,
I like to switch via URL between the editors via URL
I know already:
——————————
$col["hidden"] = (isset($_GET["pzn_ch"])?true:false);
——————————
The following does not work:
——————————
$col["formatter"] = (isset($_GET["wysiwyg"])?true:false);
——————————
Is there someting like a bool-function possible between. wysiwyg|nowysiwyg?
best regards
Mario
I mean I know already:
——————————
$col["hidden"] = (isset($_GET["wysiwyg"])?true:false);
——————————
You can conditionally enable html editor by this code:
if (isset($_GET["wysiwyg"]))
$col["formatter"] = "wysiwyg";
Please reply if you mean something different.
The principle is right. I implemented it like:
http://www.site.com/filename.php?wysiwyg=1 – to turn on
http://www.site.com/filename.php?wysiwyg=0 – to turn off
and:
————–
$col = array();
$col["title"] = "Editor";
$col["name"] = "editor";
if (isset($_GET["wysiwyg"]))
$col["formatter"] = "wysiwyg";
$col["edittype"] = "textarea";
$col["editable"] = true;
$cols[] = $col;
—————-
Or this line in the head:
if (isset($_GET["wysiwyg"]))
?
May you help, to have the whole picture, please?