Bug #17484
closed
RTEhtmlarea is not show in child records if parent has no RTE
Added by Rens Admiraal over 17 years ago.
Updated over 16 years ago.
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
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!
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?
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.
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) !!!
The new patch (v6) puts the parse method to t3lib_TCEforms_inline and uses t3lib_parsehtml. Please test it...
Sorry, v6 had a "}" at the wrong place. This byte was fixed in v7... ;-)
Again a small update...
Am I getting to old for this? ;-)
FYI: Committed to TYPO3_4-1 (rev. 2807)
Still pending for Trunk since some changes are required due to recent changes in RTEhtmlarea.
FYI: Committed to SVN
- 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
Also available in: Atom
PDF