Bug #6078
No RTE loading with negative uid
0%
Description
There is a problem (existing in both browsers) using the link "create record in top of this column" as this uses a negative id (which is the page uid)
you can test this with the following link
http://domain.at/typo3/alt_doc.php?edit[tt_content][-975]=new&defVals[tt_content][colPos]=0&defVals[tt_content][sys_language_uid]=0&returnUrl=%2Ftypo3%2Fsysext%2Fcms%2Flayout%2Fdb_layout.php%3Fid%3D780&defVals[tt_content][CType]=text
975 > uid of an existing page.
if the link "new record after this one" is used, a link like http://domain.at/typo3/alt_doc.php?edit[tt_content][780]=new&defVals[tt_content][colPos]=0&defVals[tt_content][sys_language_uid]=0&returnUrl=%2Ftypo3%2Fsysext%2Fcms%2Flayout%2Fdb_layout.php%3Fid%3D780&defVals[tt_content][CType]=text
is used which uses the uid of the content element which is before the new one.
I am guessing that because of the negative uid, no RTE configuration can be loaded from TsConfig and therefore the RTE fails to load!
please give any hints to fix it
Updated by Georg Ringer about 11 years ago
fix:
in class.tx_tinymce_rte_base.php > function drawRTE() after the line
$this->currentPage = $row['pid'];
insert:
----------------------
if ($this->currentPage < 0) {
$pidRow = t3lib_BEfunc::getRecord($table, abs($this->currentPage),'pid');
$this->currentPage = $pidRow['pid'];
}
----------------------
Updated by Thomas Allmer about 11 years ago
- Status changed from New to Needs Feedback
I just tested this with my current version and it worked without your change?
However I pretty much changed how the config gets generated...
Maybe you could test it with my latest version? make sure that the "pageLoadConfigFile" input in the extension manager has the following value "EXT:tinymce_rte/static/pageLoad.ts"
http://github.com/daKmoR/TYPO3-tinymce_rte/archives/master
PS: we are talking about the new element button directly under the columns in the default page module? So click -> select Text CE and the RTE should shows right?
Updated by Thomas Allmer about 11 years ago
- Status changed from Needs Feedback to Closed
ok, now found the situation, and solution confirmed
will be in the next release