[Yanel-dev] Using TinyMCE and Xinha in combination with a new layout

Prabodh Upreti pupreti at yahoo.com
Thu Jun 11 06:13:15 CEST 2009


Hi Michael
=A0
I modified tinymce.html.yanel-rc and added my-global.xsl.=A0 I am not sure =
about the add-tinymce-head.xsl.=A0 I accessed the page via
=A0
https://localhost:8443/yanel/from-scratch-realm/usecases/tinymce.html?edit-=
path=3D/en/index.html
=A0
and looked fine to me.=A0 I see that it has js css files related to tinymce=
 in the source output.=A0 This is a little new to me. I am quickly trying t=
o understand jelly, tinymce yanel integration etc.=A0 I will spend time on =
this tomorrow.
=A0
Also, did you get a chance to look at the stuff I sent you.=A0 I was also t=
hinking maybe I should have built the new resource class derived out of Nod=
eResource.=A0 I have some time tomorrow and would like to make changes base=
d on your feedback.=A0 Thank you.
=A0
Regards
=A0
Prabodh
=A0
--- On Wed, 6/10/09, Michael Wechner <michael.wechner at wyona.com> wrote:


From: Michael Wechner <michael.wechner at wyona.com>
Subject: Re: [Yanel-dev] Using TinyMCE and Xinha in combination with a new =
layout
To: yanel-development at wyona.com
Date: Wednesday, June 10, 2009, 3:13 AM


Prabodh Upreti schrieb:
> I will put that in the file.=A0 Thx
>

Thanks very much.

I actually think it would be more elegant to introduce another XSLT =

applied after the global.xsl and called from within

src/realms/from-scratch-realm-template/res-configs/usecases/tinymce.html.ya=
nel-rc

=A0 =A0 =A0 <view id=3D"default" type=3D"jelly">
=A0 =A0 =A0 =A0 <template>rthtdocs:/tinymce.jelly</template>
=A0 =A0 =A0 =A0 <xslt>yanelresource:/my-global.xsl</xslt>
=A0 =A0 =A0 =A0 <xslt>rthtdocs:/add-tinymce-head.xsl</xslt>
=A0 =A0 =A0 =A0 <mime-type>text/html</mime-type>
=A0 =A0 =A0 </view>


whereas add-tinymce-head.xsl would basically just copy the whole XHTML =

and add the appropriate header links
to the TinyMCE JavaScript and CSS.
This way one doesn't have to touch the global xslt in order to make the =

TinyMCE usage work

Cheers

Michael
>
> --- On *Tue, 6/9/09, Michael Wechner /<michael.wechner at wyona.com>/* wrote:
>
>
>=A0 =A0=A0=A0From: Michael Wechner <michael.wechner at wyona.com>
>=A0 =A0=A0=A0Subject: [Yanel-dev] Using TinyMCE and Xinha in combination w=
ith a
>=A0 =A0=A0=A0new layout
>=A0 =A0=A0=A0To: yanel-development at wyona.com
>=A0 =A0=A0=A0Date: Tuesday, June 9, 2009, 7:19 AM
>
>=A0 =A0=A0=A0Hi
>
>=A0 =A0=A0=A0I have noticed that it is important to add the following line
>
>=A0 =A0=A0=A0<xsl:copy-of select=3D"/xhtml:html/xhtml:head/*[name(.) !=3D =
'title']"/>
>
>=A0 =A0=A0=A0to the global XSLT, for example
>
>=A0 =A0=A0=A0src/realms/from-scratch-realm-template/data-repo/data/app1/xs=
lt/global.xsl
>
>=A0 =A0=A0=A0because otherwise the TinyMCE JS/CSS stuff won't be added by =
the
>=A0 =A0=A0=A0usecase, for example
>
>=A0 =A0=A0=A0src/realms/from-scratch-realm-template/res-configs/usecases/t=
inymce.html.yanel-rc
>
>=A0 =A0=A0=A0Cheers
>
>=A0 =A0=A0=A0Michi
>
>
>
>
>=A0 =A0=A0=A0-- Yanel-development mailing list Yanel-development at wyona.com
>=A0 =A0=A0=A0<http://us.mc522.mail.yahoo.com/mc/compose?to=3DYanel-develop=
ment at wyona.com>
>=A0 =A0=A0=A0http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-develop=
ment
>
>

-- =

Yanel-development mailing list Yanel-development at wyona.com
http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



      =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wyona.com/pipermail/yanel-development/attachments/20090610/e889=
cd9b/attachment.htm


More information about the Yanel-development mailing list