Bug #17484
closedRTEhtmlarea is not show in child records if parent has no RTE
0%
Description
When you create a child record on a parent without a field on which RTE is enabled, the RTE does not load in the child record.
When the record is saved, the page reloades and the editor appears.
Problem is solved when the parent record also has a field on which the RTE is enabled.
Problem does occur on Typo3 4.1.2
I've attached an extension which shows the problem. The parent items with the white icon don't work, the items with the purple icon do work.
(issue imported from #M5994)
Files
Updated by Oliver Hader over 17 years ago
Here we go! This patch was a f**king hard one...
The first instance of RTEhtmlarea sets/loads a portion of JavaScript (external and inline). The external ones added by AJAX is an easy one. But the inline things that normally appear somewhere in the HTML in the global namespace was tricky...
Please test this patch with your IRRE extensions!
Updated by Steffen Kamper over 17 years ago
Hi Oliver,
very good news.
i tried to apply the patch (4.2 dev svn) but told me, that the patch is outdated - doesn't match - appears with the t3lib_div.
Can you check that?
Updated by Oliver Hader over 17 years ago
Ah yes, thanks for the hint. The patch was created against the latest revision of the 4.1 branch (TYPO3 4.1.3-dev). The attached patch "0005994_v4_trunk.patch" is created against SVN Trunk (TYPO3 4.2-dev). The difference was a offset of 2 lines.
Updated by Steffen Kamper over 17 years ago
now it's perfect :-)
And i confirm, that in my case the rte is initialized right!
So all is working fine for me now.
Thank you for your work and time (again) !!!
Updated by Oliver Hader about 17 years ago
The new patch (v6) puts the parse method to t3lib_TCEforms_inline and uses t3lib_parsehtml. Please test it...
Updated by Oliver Hader about 17 years ago
Sorry, v6 had a "}" at the wrong place. This byte was fixed in v7... ;-)
Updated by Oliver Hader about 17 years ago
Again a small update...
Am I getting to old for this? ;-)
Updated by Oliver Hader almost 17 years ago
FYI: Committed to TYPO3_4-1 (rev. 2807)
Still pending for Trunk since some changes are required due to recent changes in RTEhtmlarea.
Updated by Oliver Hader almost 17 years ago
- Trunk (was pending until now, rev. 2866) -- for TYPO3 4.2.0-alpha3
- TYPO3_4-1 (just post-cleanup, rev. 2867) -- for TYPO3 4.1.6