- <?php include_once("CuteEditor_Files/include_CuteEditor.php") ;
- $editor=new CuteEditor();
- $editor->ID="Editor1";
- $editor->EditorBodyStyle="font:normal 12px arial;";
- $editor->EditorWysiwygModeCss="php.css";
- $editor->FilesPath="CuteEditor_Files";
- $editor->LoadHTML("language/enHome.inc");
- $editor->SaveFile("language/enHometwo.inc");
- $editor->Draw();
- $editor=null;
-
- ?>
above is my sample code, almost straight from the cute help files.
this is my first attempt at using cuteeditor for php
as you can see i am loading a file "language/enHome.inc"
and expecting it to save to a file "language/enHome2.inc"
there content of the file is not code, it's just simple html.... a few <h1 /> <p></p> etcs around some text.
what should i expect to happen when i click the SAVE icon.
does it acutally save the file to the server, or am i expected to grab it and save it myself somehow.
needless to say it isn't saving to the new file. i've set practically all my folders and files to have permission 777 just in case.. although i don't like doing that if i don't need too.
should i be seeing a 'your file has been saved' type dialog? anything to say something happened?
if so, please point to an appropriate round trip example.
regards,
al