To use FCKeditor to edit full page html documents, I need to process forms with "savedata.php".
What does this file look like? I am not a programmer, so if someone has a sample I could simply copy, that would be great!
All I need is the file browser to open and edit .html documents, and uploader to insert images.
Can I open other .html files in a directory for editing? Or does each file need a TextArea? (I didn't see a button on the toolbar to open files in a directory.
Thanks in advance!
What does this file look like? I am not a programmer, so if someone has a sample I could simply copy, that would be great!
All I need is the file browser to open and edit .html documents, and uploader to insert images.
Can I open other .html files in a directory for editing? Or does each file need a TextArea? (I didn't see a button on the toolbar to open files in a directory.
Thanks in advance!
RE: savedata.php
I don't know if this is too late, but I'm sure it will help someone. I just set up FCKeditor and I had the same questions, same situation.
Here's how to import an html file into the editor using your main displayed php file:
RE: savedata.php
...
$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
//Add this line
$writeValue = stripslashes( $value ) ;
....
//Fix this line ($value is now $writeValue)
$numBytes = @fwrite($fp, $writeValue) or die("Couldn't write html to file!");