Hello,
First, the FCKeditor works great. There is only one Problem. Files form Mysql-DB are not outputted in the Textarea.
For better understanding here is the code which doesn't work:
$sql="SELECT * FROM content WHERE Id='$Id'";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
$Id=$row["Id"];
$Content=$row["Content"];
}
<SCRIPT language="javascript">
var oFCKeditor ;
oFCKeditor = new FCKeditor('EditorDefault') ;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
</SCRIPT>
If open the site where this code is (edit.php), i only see the submit button of FCK. But when i see the source code of this site (Right click Mouse), i can see the text which is selected from the DB. But it will not be shown in the textarea of FCK.
What's wrong?????
Thank's for your help
Andi
First, the FCKeditor works great. There is only one Problem. Files form Mysql-DB are not outputted in the Textarea.
For better understanding here is the code which doesn't work:
$sql="SELECT * FROM content WHERE Id='$Id'";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
$Id=$row["Id"];
$Content=$row["Content"];
}
<SCRIPT language="javascript">
var oFCKeditor ;
oFCKeditor = new FCKeditor('EditorDefault') ;
oFCKeditor.Value = '<? echo $Content; ?>' ;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
</SCRIPT>
If open the site where this code is (edit.php), i only see the submit button of FCK. But when i see the source code of this site (Right click Mouse), i can see the text which is selected from the DB. But it will not be shown in the textarea of FCK.
What's wrong?????
Thank's for your help
Andi
RE: Files from Mysql-DB into textarea of FCK ?
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
?>
RE: Files from Mysql-DB into textarea of FCK ?