This topic is locked
[SOLVED]

 Innova asset manager

6/5/2007 12:22:13 PM
PHPRunner General questions
O
ombilicus author

Hello,
I set up the innova RTE and would like to enable the asset manager to upload images.

Now I read the innova Docs but am having trouble making it work in my project.

Here's what i did:

I added the following line in BuildEditControl function

echo "<textarea id='".$cfield."' name='" . $cfield . "' style='width: " . $nWidth . "px;height: " . $nHeight . "px;'>" . htmlspecialchars($value) . "</textarea>";

echo "&lt;script>";

echo "var oEdit" . $cfieldname . " = new InnovaEditor('oEdit" . $cfieldname . "');";

echo "oEdit" . $cfieldname . ".mode='HTMLBody';";

echo "oEdit" . $cfieldname . ".cmdAssetManager='modalDialogShow('/site_root/admin/plugins/innovaeditor/assetmanager/assetmanager.php',640,445);';";

echo "oEdit" . $cfieldname . ".width='" . $nWidth . "px';";

echo "oEdit" . $cfieldname . ".height='" . $nHeight . "px';";

echo "oEdit" . $cfieldname . ".REPLACE('" . $cfield . "');";

echo "</script>";
That should be it but editor's not showing up at all now.
Thanks for your input

O
ombilicus author 6/5/2007

Ok I found the problem,

I forgot to backslash the quotes in the path.

echo "oEdit" . $cfieldname . ".cmdAssetManager='modalDialogShow(\'/site_root/admin/plugins/innovaeditor/assetmanager/assetmanager.php\',640,445);';";

Well, it's always once you post that you find your own answer.

Forums are like shrinks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=18582&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />
later

K
kwebb 8/30/2007

Sorry for my ignorance but what do you mean by "BuildEditControl function"

I'm using PHP Runner 4.1 and would like to add the asset manager as well. I've read through the Innova documentation but its not clear to me how to enable this feature.