Bug #18967
RTE not loading with TemplaVoila FCEs
Status: | Resolved | Start date: | 2008-06-16 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Dmitry Dulepov | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | Is Regression: | |||
PHP Version: | Sprint Focus: | |||
Complexity: |
Description
When using TemplaVoila Flexible Content Elements which contains RTE fields, HTMLArea produces a JavaScript error in HTMLArea.initEditor while loading. The error is caused by invoking the function before any RTE flexform field is available in the DOM. As the browser then stops executing any additional scripts on the page, no contents are being filled in the flexforms, thus making it impossible to edit the contents.
I created a quick workaround, and added a check to htmlarea.js whether the requested IDs are available or not, and if they aren't, the init function exits before trying to set any properties of the "undefined" object. After applying the patch, the page loads properly.
- Error first appeared after update to TYPO3 4.2.0
- Tested in Firefox, always reproducible with current browser version, TYPO3 4.2.1 and TemplaVoila 1.3.6 with FCEs using sections.
- Patch applies to typo3_src/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
(issue imported from #M8729)
Related issues