Bug #15397
closedError displaying htmlarea in the frontend
0%
Description
When htmlarea is loaded a windows error message says: "The website http://www.mywebsite.com/mypage/index.php cannot be opened. The operation is cancelled."
I think it has to do with javascript code but I can't find out what's really causing this.
Note: htmlarea works fine in the backend. This concerns displaying it in the frontend.
CODE:
require_once(t3lib_extMgm::extPath('rtehtmlarea').'pi2/class.tx_rtehtmlarea_pi2.php');
$this->RTEObj = t3lib_div::makeInstance('tx_rtehtmlarea_pi2');
if(!$this->RTEObj->isAvailable()) {
$row['entry'] = $this->cutDown(stripslashes($row['entry']));
$row['entrycomment'] = stripslashes($row['entrycomment']);
}
if($this->RTEObj->isAvailable()) {
$this->RTEcounter++;
$this->formName = 'myform';
$this->strEntryField = 'entry';
$this->PA['itemFormElName'] = 'objHtmlArea';
$this->PA['itemFormElValue'] = '';
$this->thePidValue = $GLOBALS['TSFE']->id;
$RTEItem = $this->RTEObj->drawRTE($this,$this->strEntryTable,$this->strEntryField,$row=array(), $this->PA, $this->specConf, $this->thisConfig, $this->RTEtypeVal, '', $this->thePidValue);
}
I'm pretty sure it has to do with included javascript at line 253 of file class.tx_rtehtmlarea_pi2.php.
$GLOBALS['TSFE']->additionalHeaderData['htmlArea'] =
$additionalCode_loadCSS .
$this->loadJSfiles($pObj->RTEcounter) .
'<script type="text/javascript">' .
$this->loadJScode($pObj->RTEcounter) . '</script>';
The following .js file causing problems is:
rtehtmlarea_htmlarea_c327fd00d90034759b14818c26445afb.js in the typo3temp folder.
That's all I know for now.
(issue imported from #M2241)
Files