[TYPO3-project-formidable] TextArea with RTE

Radu Cocieru radu at cocieru.com
Wed Sep 13 12:22:36 CEST 2006


Hi !

Found a workaround for the multiple RTEs on the same page.

Please update to Version 0.0.3 ... still an Alpha release, needs some more
testing before switching to Beta.

Regards

On 9/12/06, Jérémy Lecour <jeremy.lecour at gmail.com> wrote:
>
> Yes it's possible. I'm using this to include a script only once even
> if the plugin is inserted multiple times.
>
> $GLOBALS['TSFE']->additionalHeaderData['jquery_includeonce'] =
> '<script type="text/javascript"
> src="/fileadmin/templates/base/javascripts/jquery.js"></script>';
>
> the "additionalHeaderData" array permit to add suff only once if you
> use the same "key". It also can be used to overwrite a previously set
> key. It's a great functionnality.
>
> 2006/9/12, Radu Cocieru <radu at cocieru.com>:
> > Hi !
> >
> > I am looking for a solution on this. Mainly this is because the RTE
> script
> > is not included with the header but with in the HTML body.
> >
> > So when you add 2 RTEs on the same page the RTE scripts are included
> twice
> > and they conflict.
> >
> > Is there a nice way for a renderlet to add additional headers to the
> current
> > page ?
> >
> > Thanks
> >
> > On 9/12/06, Jérémy Lecour <jeremy.lecour at gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > Is it possible to have more than 1 RTE in the same form ?
> > >
> > > I've tried and the first hangs on the "loading editor" message while
> > > the second is correcty loaded.
> > >
> > > If I change back the second as TEXTAREA, the first is loaded.
> > >
> > > When it's not good, I get some JS errors :
> > > Erreur : RTE has no properties
> > > Fichier source :
> > >
> > >
> http://my-site.com/typo3temp/rtehtmlarea_htmlarea_c92f8ad71fb7a8f10114e7bfd7915907-compressed.js
> > > Ligne : 1
> > > ----------
> > > Erreur : RTEarea[editorNumber] has no properties
> > > Fichier source :
> > >
> > >
> http://my-site.com/typo3temp/rtehtmlarea_htmlarea_c92f8ad71fb7a8f10114e7bfd7915907-compressed.js
> > > Ligne : 1
> > > ----------
> > > Erreur : RTEarea[editorNumber] has no properties
> > > Fichier source :
> > >
> > >
> http://my-site.com/typo3temp/rtehtmlarea_htmlarea_c92f8ad71fb7a8f10114e7bfd7915907-compressed.js
> > > Ligne : 1
> > > ----------
> > > Erreur : editor has no properties
> > > Fichier source :
> > >
> > >
> http://my-site.com/typo3temp/rtehtmlarea_htmlarea_c92f8ad71fb7a8f10114e7bfd7915907-compressed.js
> > > Ligne : 1
> > > ----------
> > > Erreur : editor has no properties
> > > Fichier source :
> > >
> > >
> http://my-site.com/typo3temp/rtehtmlarea_htmlarea_c92f8ad71fb7a8f10114e7bfd7915907-compressed.js
> > > Ligne : 1
> > >
> > > Thanks for any help.
> > >
> > >
> >
> > --
> > Radu Cocieru
> > _______________________________________________
> > TYPO3-project-formidable mailing list
> > TYPO3-project-formidable at lists.netfielders.de
> >
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> >
>
>
> --
> Jérémy Lecour : <mailto:jeremy.lecour at gmail.com>
> webdesigner, webmaster et développeur web
> Trésorier du PLUG : Provence Linux User Group
> http://www.plugfr.org/
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>



-- 
Radu Cocieru



More information about the TYPO3-project-formidable mailing list