On 10/22/09 10:29 AM, Ludovic Dubost wrote: > Guillaume Lerouge a écrit : >> Hi, >> >> On Thu, Oct 22, 2009 at 5:35 AM, Asiri Rathnayake< >> [email protected]> wrote: >> >> >>> Hi Ludovic, >>> >>> On Thu, Oct 22, 2009 at 3:48 AM, Ludovic Dubost<[email protected]> wrote: >>> >>> >>>> I've done a nice experiment with SocialCalc and I'm pretty happy of the >>>> results: >>>> >>>> It allows to edit a spreadsheet stored in a Wiki Page. It lacks a >>>> server-side transformation of the spreadsheet to a Wiki table for >>>> >>> rendering, >>> >>>> printing and pdfs, but it's already interesting. >>>> >>>> http://incubator.myxwiki.org/xwiki/bin/view/Test/Calc >>>> >> >> Very very nice, seems like you made interesting progress since yersterday >> :-) >> >> Can the macro already be published on code.xwiki.org as is? Does it >> require more than the macro page >> to work? If not I can publish >> http://www.myxwiki.org/xwiki/bin/view/XWiki/SocialCalcMacro >> on code.xwiki.org right away - although I'm not sure where the underlying JS >> code is located right now. >> >> > Right now the JS and Images are in > > xwiki/js/resources/socialcalc > > We could turn all this into JSExtensions but I'm not sure it is a good > idea. It would make us fork the socialcalc codebase. > At this point I've been able to only add some JS and add some CSS and it > could even be in separate files. > > I was thinking I could have made a zip of that directory and have it as > an attachment, but I don't think I can use the JSExtensions system with > zips attached in the Wiki
There are ways to achieve this (this is what I did for the bespin editor for example). I used a hack writing the <script> dependency to dojo (which is in the zip) in javascript using document.write(). Jerome. > > Ludovic > > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

