Hi,
I'm trying to setup CKEditor to do a simple page edit. I can load CKEditor and make the amendments to the page but when I try saving it replaces the current content with nothing. My code is below can anyone see where I am going wrong. Thanks in advance for any help.
Code///////////
///////////////Page Editor
<form action="../save.php" method="post">
<p>
<label for="editor1">
Editor 1:</label><br/>
<textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10">
<?php include ('../INSTALL.html'); ?>
</textarea>
</p>
<p>
<input type="submit" value="Submit"/>
</p>
</form>
/////////////Save.php
<?php
$update = $_POST[ckeditor];
$fh = fopen('INSTALL.html', "w");
fwrite($fh, $update);
fclose($fh);
header('Location:http://www.mysite.com/test/wysiwyg/INSTALL.html');
?>
Fri, 10/30/2009 - 14:24
#1