I followed the exact instructions and tried to open sample01.php on my Apache webserver.
I get a Javascript error saying this (translated):
Row: 123
A object is expected.
Looking through the fckeditor.html that is called that row consist of:
InitializeAPI() ;
I´ve tried everything can´t get the it to work. Please help.
I get a Javascript error saying this (translated):
Row: 123
A object is expected.
Looking through the fckeditor.html that is called that row consist of:
InitializeAPI() ;
I´ve tried everything can´t get the it to work. Please help.
RE: PHP implementation problems.
Find the code I used below.
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 's2' ) ;
oFCKeditor.BasePath = "FCKeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<textarea rows="15" name="s2" cols="90%" id="txtMessage"></textarea>
RE: PHP implementation problems.
You are using Javascript. Not PHP in your example:
The PHP code to load a FCK should look like this:
include("../../fckeditor.php");
$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="http://www.fckeditor.net/">FCKeditor</a>.' ;
$oFCKeditor->Create() ;
This is from sample01.php in the newest version. But i can´t get it to work. I dont´t want to use Javascript i want to use PHP and it should work...but for some reason i get the error described in my first post of this thread.
RE: PHP implementation problems.
RE: PHP implementation problems.
line 123, char 2, error object expected, code 0, URL fckeditor/editor/fckeditor.html
but, so far, only on ie6.0.2
is this because of using the php activation of the editor???
tia
kris