RTE fails with call to undefined method tslib_fe::JScharCode() in frontend editing
In frontend editing using the new feeditadvanced or the old feedit with edit forms on the page, the page load fails with a call to an undefined method tslib_fe::JScharCode(). This is because the global $LANG object is set to the existing TSFE instance rather than an valid language object. This call occurs around line 132 of class.tx_tinymce_rte_base.php
// get the language (also checks if lib is called from FE or BE, which might of use later.) $LANG = (TYPO3_MODE == 'FE') ? $GLOBALS['TSFE'] : $GLOBALS['LANG'];
#1 Updated by Marcus Schwemer about 10 years ago
- Status changed from New to Resolved
- Priority changed from Should have to Must have
Added some lines to "class.tx_tinymce_rte_base.php" in order to define $LANG for the frontend.
Thx to Steffen Kamper and his post on typo3.net which directed me the right way:
The patch is available in my github fork ... http://github.com/mschwemer/TYPO3-tinymce_rte/
But this is only the part of the story :-( tinymce_rte is not loaded in FE at all. I will open a follow-up bug/feature request...