I use the fck editor to change texts and images and tables on the site of my sports club. It works fine, it puts everything in the database. No problem so far. BUT, if they want to make changes and there is a table on the page or a ' (as in foto's), the fck editor doesn't appear anymore. I think it has something to do with the oFCKeditor.Value. In the code further on below you will see the code for the titles I made in dreamweaver. Do I have to put in something with the htmlentities in it? Anybody any idea?
<?php
echo "<script type='text/javascript' src='../fckeditor/fckeditor.js'></script>\n";
echo "<script type='text/javascript'>\n";
echo "var oFCKeditor = new FCKeditor('paginatekst');\n";
echo "oFCKeditor.BasePath = '../fckeditor/';\n";
echo "oFCKeditor.Width = 550;\n";
echo "oFCKeditor.Height = 300;\n";
echo "oFCKeditor.Value ='".$row_rsTekstWijzigen['paginatekst']."';";
echo "oFCKeditor.Create();\n";
echo "</script>\n";
?>
This is the text<input type="text" name="kop" value="<?php echo htmlentities($row_rsTekstWijzigen['kop'], ENT_COMPAT, 'utf-8'); ?>" size="32" />
<?php
echo "<script type='text/javascript' src='../fckeditor/fckeditor.js'></script>\n";
echo "<script type='text/javascript'>\n";
echo "var oFCKeditor = new FCKeditor('paginatekst');\n";
echo "oFCKeditor.BasePath = '../fckeditor/';\n";
echo "oFCKeditor.Width = 550;\n";
echo "oFCKeditor.Height = 300;\n";
echo "oFCKeditor.Value ='".$row_rsTekstWijzigen['paginatekst']."';";
echo "oFCKeditor.Create();\n";
echo "</script>\n";
?>
This is the text<input type="text" name="kop" value="<?php echo htmlentities($row_rsTekstWijzigen['kop'], ENT_COMPAT, 'utf-8'); ?>" size="32" />