Re: problem with setting the Gallery's and template directory programmatically

  •  06-19-2011, 10:48 AM

    Re: problem with setting the Gallery's and template directory programmatically

    Hi Emile,
     
    I set the directory path programmatically, it works fine on my end, can you clear browser cache, restart browser and try it again? 

    <?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
    <html>
    <head>
    <title>Edit Static Html Example -- PHP Content Management, PHP WYSIWYG,
    PHP HTML Editor, PHP Text Editor</title>
    <link rel="stylesheet" href="php.css" type="text/css" />
    </head>
    <body>
    <form name="theForm" action="1.php?postback=true" method="post">
    <h1>Edit Static Html</h1>
    <br />
    </div>
    <br />
    <?php
    $editor=new CuteEditor();
    $editor->ID="Editor1";
    $editor->ImageGalleryPath                =   "/phphtmledit/uploads1";
    $editor->FlashGalleryPath                =   "/phphtmledit/uploads1";
    $editor->MediaGalleryPath                =    "/phphtmledit/uploads1";
    $editor->FilesGalleryPath                =    "/phphtmledit/uploads1";
    $editor->TemplateGalleryPath         =    "/phphtmledit/uploads1";
    //  $editor->EditorBodyStyle="font:normal 12px arial;";
    $editor->EditorWysiwygModeCss="php.css";
    $editor->EditCompleteDocument=true;
    if (@$_GET["postback"]!="true")
    {
     $editor->LoadHTML("document.html");
     $editor->Draw();
    }
    else
    {
     $editor->SaveFile("document.html");
     $editor->Draw();
    }
    $editor=null;

    //use $_POST["Editor1"]to retrieve the data
    ?> <textarea name="textbox1" rows="2" cols="20" id="textbox1"
     style="font-family: Arial; height: 250px; width: 730px;">
    <?php echo @stripslashes($_POST["Editor1"]) ;?>
                </textarea></form>
    </body>
    </html>
     
    Thanks for asking
View Complete Thread