[TYPO3-dev] tinymce_rte is now beta
Steffen Kamper
info at sk-typo3.de
Thu Nov 6 09:44:36 CET 2008
Tapio Markula schrieb:
> 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
look to RTE how he does. There is imho no need for XCLASS or hook.
vg Steffen
More information about the TYPO3-dev
mailing list