<?php
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="<a href="http://www.fckeditor.net/" target="_blank">http://www.fckeditor.net/</a>">FCKeditor</a>.' ;
$oeZeditor->Config['ToolbarLocation'] = 'Out:xToolbar' ;
$oFCKeditor->Create() ;
?>
RE: separating menu and editor
I found this on another post. Open the file _samples/php/sample01.php
its only 2 extra lines
<div id="xToolbar"></div>
<form action="sampleposteddata.php" method="post" target="_blank">
<div id="xToolbar"></div>