Feature #15390
closedBug in rich text editor with IE 6.0
0%
Description
Just downloaded QuickStart and tried RTE feature. There was problem with rich editor and there was no ability to open editor on button click. It seems the problem was in typo3/sysext/cms/layout/class.tx_cms_layout.php class, function is linkRTEbutton. It was creating link wizard_rte.php?&P[table]... and IE couldnt cope with it. I slighlty changed function on my own and now it works ok. There is modified function in Additional information. I would like that typo3 crew verifies this bug and perhaps solution.
function linkRTEbutton($row) {
$params = array();
$params['table'] = 'tt_content';
$params['uid'] = $row['uid'];
$params['pid'] = $row['pid'];
$params['field'] = 'bodytext';
$params['returnUrl'] = t3lib_div::linkThisScript();
$paramUrl = t3lib_div::implodeArrayForUrl('',array('P'=>$params));
if (strlen($paramUrl) > 0 && $paramUrl[0] == '&') {
$paramUrl = substr($paramUrl, 1);
}
$RTEonClick = "document.location='".$this->backPath."wizard_rte.php?".$paramUrl."';return false;";
$addButton = $this->option_showBigButtons && $this->doEdit ? $GLOBALS['SOBE']->doc->t3Button($RTEonClick,$GLOBALS['LANG']->getLL('editInRTE')) : '';
return $addButton;
}
(issue imported from #M2230)