[TYPO3-core] RFC #8232: Creating and editing of fields, forms, etc. in FCE's is impossible if there is a section inside

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Aug 11 22:15:30 CEST 2008


Hi!

This is SVN patch request.

Type: bug

Branch: trunk only (due to the complexity of the patch)

BT references:
http://bugs.typo3.org/view.php?id=8232
http://bugs.typo3.org/view.php?id=8570
http://bugs.typo3.org/view.php?id=8766

Problem: if there is a section in Backend form (not necessarily in FCE but in any BE form!), it is impossible to use RTE there. Clicking "Save" causes login prompt and deleting section causes JavaScript error. It happens because Kasper's implementation of dynamic section elements did not take care about RTE code.

Solution: solution is complex to explain :( The whole fixing process took 11 hours initially + 3 hours for cleaning up the patch. It involves generating code for RTE and dynamically replacing certain parts of it using JavaScript. The solution is not the most elegant but anything else is impossible without a complete rewrite of Kasper's code for sections.

The patch includes changes for TCEforms and rtehtmlarea. BE portion of the patch is tested by people, who monitor the issue in BT and FE part of RTE is updated/tested by Stanislas.

As I wrote the code there is not very elegant. I would say more: it is terrible in my opinion. But nothing else (except complete rewrite) is possible.

Since this bug is really critical for anyone who uses sections with RTE (complete failure of BE!), I hope to see it in the 4.3. If we ever decide on ExtJS for BE forms, this horrible code will go away.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/typo3_code_formatting_in_eclipse/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8232_v4.diff
Type: text/x-diff
Size: 27278 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080811/f1e9cd61/attachment-0001.diff 


More information about the TYPO3-team-core mailing list