[TYPO3-irre] RFC #15622: RTE does not load on irre element when renderFieldsOnly is set
Thomas Maroschik
tmaroschik at dfau.de
Thu Sep 2 14:39:33 CEST 2010
This issue has been resolved by the attached Patch in
http://bugs.typo3.org/view.php?id=15622 and is directly related to IRRE.
Copy of essential parts of the notes:
------------
> In my case i have got an database entry which contains irre child entries configured that way:
>
> 'description' => array(
> 'exclude' => '1',
> 'label' => 'Description goes here',
> 'config' => array(
> 'type' => 'inline',
> 'foreign_table' => 'TEXT',
> 'maxitems' => '2',
> 'renderFieldsOnly' => '1',
> ),
> ),
>
> When I create a new TEXT item containing the rte it does not get loaded and keeps telling me "The editor is being loaded. Please wait...".
------------
> sorry forgot typo3 version. its typo3 4.4.3-dev
>
> addionall i disabled js compressor. here the firebug debug message:
>
> Ext.get(element) is null
> (?)(Object { name="name"}, Object { name="ns"}) ext-all-debug.js (Zeile 4438)
> getTipCfg(Object { name="e"}) ext-all-debug.js (Zeile 47224)
> onTargetOver(Object { name="e"}) ext-all-debug.js (Zeile 47255)
> h(Object { name="e"}) ext-all-debug.js (Zeile 2853)
> return d.getAttributeNS(ns, na...) || d.getAttribute(name) || d[name];
------------
> Attached a patch, that fixes the problem. In class.t3lib_tceforms_inline on about lin 437 there was a part like
>
> if ($config['renderFieldsOnly']) {
> $out = $fields . $combination;
> } else ...
>
> which made it impossible to detect irre records when renderFieldsOnly is set.
>
> Replaced it by
>
> if ($config['renderFieldsOnly']) {
> $out = '<div id="' . $objectId . '_fields" >' . $fields . $combination . '</div>';
> } else ...
>
> and everything works fine.
Best regards
Tom
--
___________________________
Thomas Maroschik
DFAU
More information about the TYPO3-project-irre
mailing list