Hello,
I have a page with 3 FCKeditors, but the second and the third editor not work corectly.
So, when i input text in the editor and then write this information in db, when i get the information back there are no html tags in the text.
This is example part of my php code:
and
Please help me!
I have a page with 3 FCKeditors, but the second and the third editor not work corectly.
So, when i input text in the editor and then write this information in db, when i get the information back there are no html tags in the text.
This is example part of my php code:
<?php
require($glob['adminFolder']."/includes".CC_DS."rte".CC_DS."fckeditor.php");
$oFCKeditor = new FCKeditor('FCKeditor');
$oFCKeditor->BasePath = $GLOBALS['rootRel'].$glob['adminFolder'].'/includes/rte/' ;
$oFCKeditor->Value = (isset($results[0]['description'])) ? $results[0]['description'] : '';
if (!$config['richTextEditor']) $oFCKeditor->off = true;
$oFCKeditor->Create();
?>
</td>
</tr>
<tr>
<td colspan="2" class="tdRichText"><span class="tdText"><strong>Description2:</strong> <?php echo $lang['admin']['products_primary_lang'];?></span>
</td>
</tr>
<tr>
<td colspan="2" class="tdRichText">
<?php
// require($glob['adminFolder']."/includes".CC_DS."rte".CC_DS."fckeditor.php");
$oFCKeditor1 = new FCKeditor('description2');
$oFCKeditor1->BasePath = $GLOBALS['rootRel'].$glob['adminFolder'].'/includes/rte/' ;
$oFCKeditor1->Value = (isset($results[0]['description2'])) ? $results[0]['description2'] : '';
if (!$config['richTextEditor']) $oFCKeditor1->off = true;
$oFCKeditor1->Create();
?>
</td>
</tr>
<tr>
<td colspan="2" class="tdRichText"><span class="tdText"><strong>Description3:</strong> <?php echo $lang['admin']['products_primary_lang'];?></span>
</td>
</tr>
<tr>
<td colspan="2" class="tdRichText">
<?php
//require($glob['adminFolder']."/includes".CC_DS."rte".CC_DS."fckeditor.php");
$oFCKeditor2 = new FCKeditor('description3');
$oFCKeditor2->BasePath = $GLOBALS['rootRel'].$glob['adminFolder'].'/includes/rte/' ;
$oFCKeditor2->Value = (isset($results[0]['description3'])) ? $results[0]['description3'] : '';
if (!$config['richTextEditor']) $oFCKeditor2->off = true;
$oFCKeditor2->Create();
?>
and
$description2 = (detectSSL() && !$config['force_ssl'] && $config['rootRel'] != CC_DS) ? str_replace($config['rootRel_SSL'], $glob['rootRel'], $_POST['description2']) : $_POST['description2']; $record['description2'] = (!empty($description2)) ? $db->mySQLSafe($description2) : 'NULL'; $description = (detectSSL() && !$config['force_ssl'] && $config['rootRel'] != CC_DS) ? str_replace($config['rootRel_SSL'], $glob['rootRel'], $_POST['FCKeditor']) : $_POST['FCKeditor']; $record['description'] = (!empty($description)) ? $db->mySQLSafe($description) : 'NULL'; $description3 = (detectSSL() && !$config['force_ssl'] && $config['rootRel'] != CC_DS) ? str_replace($config['rootRel_SSL'], $glob['rootRel'], $_POST['description3']) : $_POST['description3']; $record['description3'] = (!empty($description3)) ? $db->mySQLSafe($description3) : 'NULL';
Please help me!
