[TYPO3-dev] tinymce_rte is now beta
Tapio Markula
tapio.markula at xetpoint.fi
Thu Nov 6 09:29:15 CET 2008
Dmitry Dulepov
> Firsts, it exists and mantained by the core team. So if something
> changes, this code is updated. You have one less huge code piece to
> manage.
that is not so simple because tinyMCE needs some additional JS code.
At least needed XCLASS, which has
a)
function init() {
global $BE_USER,$BACK_PATH;
parent::init()
# Extra JS for tinymce_rte
$this->doc->JScode .=...
}
or
b)
function init() {
global $BE_USER,$BACK_PATH;
# Extra JS for tinymce_rte
$this->doc->JScode .=...
parent::init()
}
Both should work because parent function doesn't have
$this->doc->JScode =... and no return statement on the end of parent
function
BTW. That was *not* possible for the init function of
tinymce_rte/mod2/browse_links.php
because $this->doc->JScode = '... and return statement on the end of the
function => $this->doc->JScode .= '... was both in a) and b) ignored
It should *always* set as
$this->doc->JScode .=...
in order to dynamic add new JS
More information about the TYPO3-dev
mailing list