Hello,
I'm facing a little problem; FCKEditor doesn't show up. I believe this has something to do with the fact that I'm including kind of abstrusely.
This is my file structure:
ROOT
-index.php
-fckeditor
--fckeditor datas
-modules
--1.php
--template.php
Alright. 1.php includes template.php, index.php includes 1.php.
template.php echos all the stuff i write in variables, e.g. it prints the content of the $content-variable in the <body></body>-tags.
This is the content of 1.php:
<?php
include('checkrights.php');
$content.='
<script type="text/javascript" src="./fckeditor/fckeditor.js"></script><form action="sampleposteddata.asp" method="post" target="_blank">
<script type="text/javascript">
<!--
// 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/" ;
y
var oFCKeditor = new FCKeditor("FCKeditor1") ;
//oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = "<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>" ;
oFCKeditor.Create() ;
//-->
</script>
<br />
<input type="submit" value="Submit" />
</form>';
include('template.php');
?>Since everything is included in index.php at the end, I believe that this is the way to set the paths, but nothing except the submit-button shows up.
Does someone know where the mistake is?
Yours,
ascIIaster
//Edit: just used the PHP-FCKEditor, works fine
