[Yanel-dev] Using TinyMCE and Xinha in combination with a new
layout
Michael Wechner
michael.wechner at wyona.com
Wed Jun 10 09:13:38 CEST 2009
Prabodh Upreti schrieb:
> I will put that in the file. 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.yanel-rc
<view id="default" type="jelly">
<template>rthtdocs:/tinymce.jelly</template>
<xslt>yanelresource:/my-global.xsl</xslt>
<xslt>rthtdocs:/add-tinymce-head.xsl</xslt>
<mime-type>text/html</mime-type>
</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:
>
>
> From: Michael Wechner <michael.wechner at wyona.com>
> Subject: [Yanel-dev] Using TinyMCE and Xinha in combination with a
> new layout
> To: yanel-development at wyona.com
> Date: Tuesday, June 9, 2009, 7:19 AM
>
> Hi
>
> I have noticed that it is important to add the following line
>
> <xsl:copy-of select="/xhtml:html/xhtml:head/*[name(.) != 'title']"/>
>
> to the global XSLT, for example
>
> src/realms/from-scratch-realm-template/data-repo/data/app1/xslt/global.xsl
>
> because otherwise the TinyMCE JS/CSS stuff won't be added by the
> usecase, for example
>
> src/realms/from-scratch-realm-template/res-configs/usecases/tinymce.html.yanel-rc
>
> Cheers
>
> Michi
>
>
>
>
> -- Yanel-development mailing list Yanel-development at wyona.com
> <http://us.mc522.mail.yahoo.com/mc/compose?to=Yanel-development@wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
More information about the Yanel-development
mailing list