[Yanel-dev] Using TinyMCE and Xinha in combination with a new
layout
Michael Wechner
michael.wechner at wyona.com
Thu Jun 11 12:10:11 CEST 2009
Dear Prabodh
I have slightly refactored your code and commited it as follows:
http://lists.wyona.org/pipermail/yanel-commits/2009-June/date.html
http://lists.wyona.org/pipermail/yanel-commits/2009-June/005215.html
etc.
Please note that I have added this resource to the from-scratch-realm,
whereas it is referenced by
http://svn.wyona.com/repos/public/yanel/trunk/src/realms/from-scratch-realm-template/resource-types.xml
and hence will be automatically build during the general build process.
One item which I have noticed is that the session parameter name doesn't
show up within
http://127.0.0.1:8080/yanel/from-scratch-realm/en/index.html?yanel.resource.meta&yanel.format=xml
<yanel
servlet-context-real-path="/home/michi/src/yanel-trunk/local/apache-tomcat-5.5.20/webapps/yanel/">
<request servlet-path="/from-scratch-realm/en/index.html"
uri="/yanel/from-scratch-realm/en/index.html"/>
−
<session id="18857C3DF8ABAB6F07AD47C2833248EE">
<attribute name="identity-map">lenya (from-scratch-realm-template
realm)</attribute>
<attribute name="toolbar">on</attribute>
<attribute name="">1</attribute>
</session>
maybe this is a bug of Yanel. Need to check later.
As you already mentioned it would be more elegant to derive the
layoutselector resource type from the node/file resource type
instead creating one from scratch. Maybe we can refactor this at some
later stage.
Cheers
Michael
Prabodh Upreti schrieb:
> Hi Michael
> I modified tinymce.html.yanel-rc and added my-global.xsl. I am not
> sure about the add-tinymce-head.xsl. I accessed the page via
> https://localhost:8443/yanel/from-scratch-realm/usecases/tinymce.html?edit-path=/en/index.html
> and looked fine to me. I see that it has js css files related to
> tinymce in the source output. This is a little new to me. I am quickly
> trying to understand jelly, tinymce yanel integration etc. I will
> spend time on this tomorrow.
> Also, did you get a chance to look at the stuff I sent you. I was also
> thinking maybe I should have built the new resource class derived out
> of NodeResource. I have some time tomorrow and would like to make
> changes based on your feedback. Thank you.
> Regards
> Prabodh
> --- 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. 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
> <http://us.mc05g.mail.yahoo.com/mc/compose?to=michael.wechner@wyona.com>>/*
> wrote:
> >
> >
> > From: Michael Wechner <michael.wechner at wyona.com
> <http://us.mc05g.mail.yahoo.com/mc/compose?to=michael.wechner@wyona.com>>
> > Subject: [Yanel-dev] Using TinyMCE and Xinha in combination with a
> > new layout
> > To: yanel-development at wyona.com
> <http://us.mc05g.mail.yahoo.com/mc/compose?to=yanel-development@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.mc05g.mail.yahoo.com/mc/compose?to=Yanel-development@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
> >
> >
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <http://us.mc05g.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