Hello,
I have the following script:
<?php include_once("fckeditor/fckeditor.php") ; ?> <html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <form action="sampleposteddata.php" method="post" target="_blank"> <?php $loadcontent = "hallo.html"; if($save_file) { $savecontent = stripslashes($savecontent); $fp = @fopen($loadcontent, "w"); if ($fp) { fwrite($fp, $savecontent); fclose($fp); } } $fp = @fopen($loadcontent, "r"); $loadcontent = fread($fp, filesize($loadcontent)); $loadcontent = htmlspecialchars($loadcontent); fclose($fp); $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Value = $loadcontent ; $oFCKeditor->Create() ; ?> <br> <input type="submit" value="Submit"> </form> </body> </html>
And hallo.html=
<html> <head><title>hallo</title></head> <body> <p>mghcmyfxmyrhgmrmrfxgmtfrsrgmz </p> </body> </html>
Now is the text in the editor:
<html> <head><title>hallo</title></head> <body> <b>mghcmyfxmyrhgmrmrfxgmtfrsrgmz </b> </body> </html>
but i want mghcmyfxmyrhgmrmrfxgmtfrsrgmz
Do know what I do wrong?
bart
Re: Open a html file in the editor