<?
header('Content-Type: application/xhtml+xml; charset=utf-8');
echo '<'.'?xml version="1.0" encoding="UTF-8"?'.'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="../../fckeditor.js"></script>
</head>
<body>
<div id="editordiv"></div>

<script type="text/javascript"> 
var oFCKeditor = new FCKeditor('content'); oFCKeditor.BasePath = "../../"; 
oFCKeditor.Value = '';

//oFCKeditor.Create() = document.write( this.CreateHtml() ) ; but you can't use document.write.

var a = oFCKeditor.CreateHtml();
document.getElementById('editordiv').innerHTML = a;

 </script> 
 
</body>
</html>
