<?php include("FCKeditor/fckeditor.php") ; ?>
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<form action="savedata.php" method="post">
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = 'Default text in editor - testing';
$oFCKeditor->Create() ;
?>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

RE: Getting FCKeditor to work
Can someone answer these questions:
1) How does FCKeditor SAVE my newly-written 'html' code to the file I want it to be saved to??
2) How Do I get the file I want edited - into the Editor?
Thanks in advance!
RE: Getting FCKeditor to work
You can work with files, databases, etc.... and with any server language or framework that you like, this component just takes care about the editing of HTML content using a nice enviroment instead of a textarea.
If you do some searches in the forum you will be able to find examples about how it can be done.
RE: Getting FCKeditor to work
<?php include("FCKeditor/fckeditor.php") ; ?><html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script language="javascript"> function saveContent() { var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ; document.form1.htmlcontent.value = oEditor.GetXHTML(true); document.form1.submit(); } </script> </head> <body> <form action="savedata.php" method="post"> <?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/FCKeditor/'; $oFCKeditor->Value = 'Default text in editor - testing'; $oFCKeditor->Create() ; ?> <br> <input type="submit" value="Submit" onclick="saveContent()"> <input type="hidden" name="htmlcontent" value=""> </form> </body> </html>RE: Getting FCKeditor to work
<?php include("FCKeditor/fckeditor.php") ; ?><html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <form action="savedata.php" method="post"> <?php $oFCKeditor = new FCKeditor('htmlcontent') ; $oFCKeditor->BasePath = '/FCKeditor/'; $oFCKeditor->Value = 'Default text in editor - testing'; $oFCKeditor->Create() ; ?> <br> <input type="submit" value="Submit"> </form> </body> </html>RE: Getting FCKeditor to work