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

Michael Wechner michael.wechner at wyona.com
Mon Jun 15 14:51:08 CEST 2009


Prabodh Upreti schrieb:
>
> Hi Michael
>
>  
>
> I created   add-tinymce-head.xsl which as you mentioned copied the 
> output from global.xsl and appended the tinymce specific js and css 
> files.  I have one slight problem
>
>  
>
> <link rel="stylesheet" type="text/css" 
> href="${yanel.back2realm}${yanel.reservedPrefix}/resource-types/http://www.wyona.org/yanel/resource/1.0::tinymce/css/tinymce-resource.css"/> 
>
>
>  
>
> xslt is not able to resolve variables yanel.back2realm and  
> yanel.reservedPrefix even though they are declared on the top.  I am 
> getting the path as  $$/resource-types/…..
>
>  
> I will investigate more and see why this is happening but just wanted 
> to check with you if you knew a quick solution to this.  Thank you.
>


Guillaume is back from vacation :-) Hope his answer helped you or please 
let me know otherwise.

Cheers

Michael
>  
> Regards
>  
> Prabodh
>
> --- On *Thu, 6/11/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: Thursday, June 11, 2009, 3:20 AM
>
>     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.
>     >
>
>     it's basically about how do this links get added there. Currently
>     it's by the copy statement within the global.xsl,  but
>     the problem is that this copy statement doesn't have to be there,
>     that was just "coincidence", and hence the idea of
>     add-tinymce-head.xsl which makes sure that these links will be there.
>     > 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.
>     >
>
>     no quite through yet, but definitely this morning
>     > I was also thinking maybe I should have built the new resource
>     class derived out of NodeResource.
>     >
>
>     that would definitely make sense. In order to do so you need to
>     add a maven dependency
>
>     MY_RESOURCE/src/build/dependencies.xml
>     > I have some time tomorrow and would like to make changes based
>     on your feedback.
>     >
>
>     I will send you some feedback during the next couple of hours
>
>     Thanks very much for your work so far
>
>     Michael
>     > Thank you.
>     >  Regards
>     >  Prabodh
>     >  --- On *Wed, 6/10/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: Re: [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: 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>
>     > 
>        <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>
>     > 
>        <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>
>     > 
>        <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.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://us.mc05g.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