From dmunicio at gmail.com Mon Oct 6 14:42:52 2008 From: dmunicio at gmail.com (Diego Municio) Date: Mon, 6 Oct 2008 14:42:52 +0200 Subject: [kupu-dev] Acronym / abbreviation drawer for kupu Message-ID: <262223130810060542h527a23c9nc0693a7dfc2f0894@mail.gmail.com> Hi all, I have created a drawer to allow kupu insert and tags. I wonder if it would be valuable to merge it to the trunk. It could be disabled by default so I think that is not an intrusive feature. What do you think? Best regards, Diego Municio -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/kupu-dev/attachments/20081006/5a6e7f8e/attachment.htm From Goesele at hfph.mwn.de Mon Oct 6 20:40:25 2008 From: Goesele at hfph.mwn.de (Andreas Goesele) Date: Mon, 06 Oct 2008 20:40:25 +0200 Subject: [kupu-dev] kupu lists and validation Message-ID: <87prmdpnxi.fsf@debian.IGP> Hi! We are using kupu 1-4-11 with plone 3.1.5.1. If one starts a list with e.g. the "Bulleted List" tool and then moves that to the right with "Increase Quote Level" this results in invalid code: Is possible to fix that? (As we have a large user base "don't do that, then" unfortunately won't help.) Thanks a lot in advance! Andreas From jordim at guellconsulting.com Wed Oct 22 12:31:37 2008 From: jordim at guellconsulting.com (Jordi Martinez) Date: Wed, 22 Oct 2008 12:31:37 +0200 Subject: [kupu-dev] kupu error when I try to insert some custom code In-Reply-To: <48ABEC96.9090602@johnnydebris.net> References: <48ABEA8B.1010507@guellconsulting.com> <48ABEC96.9090602@johnnydebris.net> Message-ID: <48FF0109.2090605@guellconsulting.com> Hi! I create a kupu tool with this code: function FoneticaTool() { this.initialize = function(editor) { this.editor = editor; this.editor.logMessage(_('Fonetica tool initialized')); }; this.createFonetica = function(texte) { var sel = this.editor.getSelection(); var tnode = this.editor.getInnerDocument().createTextNode(texte); sel.replaceWithNode(tnode, true); this.editor.logMessage(_('Fonetica inserted')); this.editor.updateState(); this.editor.focusDocument(); return tnode; }; } FoneticaTool.prototype = new KupuTool; I add all the needed stuff in their places and all works ok except the createFonetica function The error line is sel.replaceWithNode(tnode, true); and the error is uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://192.168.1.38:8110/esadir/kupuhelpers.js :: anonymous :: line 443" data: no] Line 0 If I try to see the texte content (with an alert, for instance) the content is ok Anyone has any clue with this problem? To Guido: I copy this code from a mail sended by you trying to help me Thanks! From jordim at guellconsulting.com Wed Oct 22 13:30:59 2008 From: jordim at guellconsulting.com (Jordi Martinez) Date: Wed, 22 Oct 2008 13:30:59 +0200 Subject: [kupu-dev] kupu error when I try to insert some custom code In-Reply-To: <48FF0109.2090605@guellconsulting.com> References: <48ABEA8B.1010507@guellconsulting.com> <48ABEC96.9090602@johnnydebris.net> <48FF0109.2090605@guellconsulting.com> Message-ID: <48FF0EF3.7060704@guellconsulting.com> Jordi Martinez escribi?: > Hi! > I create a kupu tool with this code: > > function FoneticaTool() { > this.initialize = function(editor) { > this.editor = editor; > this.editor.logMessage(_('Fonetica tool initialized')); > }; > > this.createFonetica = function(texte) { > var sel = this.editor.getSelection(); > var tnode = this.editor.getInnerDocument().createTextNode(texte); > sel.replaceWithNode(tnode, true); > > this.editor.logMessage(_('Fonetica inserted')); > this.editor.updateState(); > this.editor.focusDocument(); > return tnode; > }; > } > > FoneticaTool.prototype = new KupuTool; > > I add all the needed stuff in their places and all works ok except the > createFonetica function > > The error line is > > sel.replaceWithNode(tnode, true); > > and the error is > > uncaught exception: [Exception... "Component returned failure code: > 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]" > nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: > http://192.168.1.38:8110/esadir/kupuhelpers.js :: anonymous :: line > 443" data: no] > > Line 0 > > If I try to see the texte content (with an alert, for instance) the > content is ok > > Anyone has any clue with this problem? > > To Guido: I copy this code from a mail sended by you trying to help me > > Thanks! > _______________________________________________ > kupu-dev mailing list > kupu-dev at codespeak.net > http://codespeak.net/mailman/listinfo/kupu-dev > > Some new clues: With IE6 this code works better that with Mozilla (at least inserts something) If there are some selected text, the editor replaces the selected text ok but if there aren't the editor put the insertion at the beginning of the current node With Mozilla only raises the exception and don't do anything more What make me go crazy is that I copy the createFonetica code from the ImageTool In the image tool works perfect but in mine don't Could you point me where the problem is? Guido, please! From devPyPlTw at verizon.net Sat Oct 25 04:02:44 2008 From: devPyPlTw at verizon.net (Ed Manlove) Date: Fri, 24 Oct 2008 21:02:44 -0500 Subject: [kupu-dev] Upcoming Plone release and Kupu changes Message-ID: <49027E44.2010404@verizon.net> I'm trying to understand the package release of Plone with Kupu. I am correct in saying that changes to Products.kupu under the Plone 3.2 branch will be part of the Plone release? I known this sounds like a Plone question but I am trying to understand what constitutes a Kupu package as compared to what is a Plone package? and how they may interrelate? Ed From johnny at johnnydebris.net Sat Oct 25 12:22:26 2008 From: johnny at johnnydebris.net (Guido Wesdorp) Date: Sat, 25 Oct 2008 12:22:26 +0200 Subject: [kupu-dev] kupu error when I try to insert some custom code In-Reply-To: <48FF0109.2090605@guellconsulting.com> References: <48ABEA8B.1010507@guellconsulting.com> <48ABEC96.9090602@johnnydebris.net> <48FF0109.2090605@guellconsulting.com> Message-ID: <4902F362.6030504@johnnydebris.net> Jordi Martinez wrote: > var tnode = this.editor.getInnerDocument().createTextNode(texte); > sel.replaceWithNode(tnode, true); > I have the feeling replaceWithNode doesn't work well with text nodes... I wanted to try this out properly before responding, unfortunately I don't seem to find the time to do so, so no promises, just a guess... :| You may want to try a work-around like this: var doc = this.editor.getInnerDocument(); var tempnode = doc.createElement('span'); var tnode = doc.createTextNode(texte); sel.replaceWithNode(tempnode, true); tempnode.parentNode.replaceChild(tempnode, tnode); sel.selectNodeContents(tnode); Again, not sure if it works, but may be worth a try... Cheers, Guido From duncan.booth at suttoncourtenay.org.uk Sat Oct 25 13:09:16 2008 From: duncan.booth at suttoncourtenay.org.uk (Duncan Booth) Date: Sat, 25 Oct 2008 11:09:16 +0000 (UTC) Subject: [kupu-dev] Upcoming Plone release and Kupu changes References: <49027E44.2010404@verizon.net> Message-ID: Ed Manlove wrote: > I'm trying to understand the package release of Plone with Kupu. I am > correct in saying that changes to Products.kupu under the Plone 3.2 > branch will be part of the Plone release? > > I known this sounds like a Plone question but I am trying to understand > what constitutes a Kupu package as compared to what is a Plone package? > and how they may interrelate? > I generate new releases of Kupu before each release of Plone when there have been changes made. Until recently that has meant uploading a tgz file to plone.org but with Plone 3.2 it means also creating a new kupu egg. The egg is packaged differently but the actual kupu files are the same in both cases. If you have an older version of Plone then you may upgrade it to use a newer kupu: so far kupu has remained compatible with all versions of Plone from 2.1ish through to 3.2 (although there may be a few other product dependencies if you use a really old Plone). Does that help any? From devPyPlTw at verizon.net Sat Oct 25 20:51:20 2008 From: devPyPlTw at verizon.net (Ed Manlove) Date: Sat, 25 Oct 2008 13:51:20 -0500 Subject: [kupu-dev] Upcoming Plone release and Kupu changes Message-ID: <49036AA8.7090506@verizon.net> >> I'm trying to understand the package release of Plone with Kupu. I am >> correct in saying that changes to Products.kupu under the Plone 3.2 >> branch will be part of the Plone release? >> >> I known this sounds like a Plone question but I am trying to understand >> what constitutes a Kupu package as compared to what is a Plone package? >> and how they may interrelate? >> > I generate new releases of Kupu before each release of Plone when there > have been changes made. Until recently that has meant uploading a tgz file > to plone.org but with Plone 3.2 it means also creating a new kupu egg. The > egg is packaged differently but the actual kupu files are the same in both > cases. > > If you have an older version of Plone then you may upgrade it to use a > newer kupu: so far kupu has remained compatible with all versions of Plone > from 2.1ish through to 3.2 (although there may be a few other product > dependencies if you use a really old Plone). > > Does that help any? Duncan, Yes. I'm working on closing out several RTL bugs under Plone before the next Plone release. One I would like to fix #7177 depends upon patching the precedence of Kupu stylesheets in relation to RTL.css, http://dev.plone.org/plone/ticket/8570. #8570 in turns depended upon #8505 which I've fixed under Plone 3.2 branch and closed. Basically if I patched NuPlone stylesheet ordering (#7177) but not Kupu's stylesheet ordering(#8570), Kupu stylying under the NuPLone theme would break. Thus I wanted to make sure the issues were fixed in order and that under the upcoming release all patches were applied leaving no one part broken. As I fixed #8505 would it be alright to add the patches for Kupu (#8570)? Ed From duncan.booth at suttoncourtenay.org.uk Sun Oct 26 10:00:02 2008 From: duncan.booth at suttoncourtenay.org.uk (Duncan Booth) Date: Sun, 26 Oct 2008 09:00:02 +0000 (UTC) Subject: [kupu-dev] Upcoming Plone release and Kupu changes References: <49036AA8.7090506@verizon.net> Message-ID: Ed Manlove wrote: >>> I'm trying to understand the package release of Plone with Kupu. I >>> am correct in saying that changes to Products.kupu under the Plone >>> 3.2 branch will be part of the Plone release? >>> >>> I known this sounds like a Plone question but I am trying to >>> understand what constitutes a Kupu package as compared to what is a >>> Plone package? and how they may interrelate? >>> >> I generate new releases of Kupu before each release of Plone when >> there have been changes made. Until recently that has meant uploading >> a tgz file to plone.org but with Plone 3.2 it means also creating a >> new kupu egg. The egg is packaged differently but the actual kupu >> files are the same in both cases. >> >> If you have an older version of Plone then you may upgrade it to use >> a newer kupu: so far kupu has remained compatible with all versions >> of Plone from 2.1ish through to 3.2 (although there may be a few >> other product dependencies if you use a really old Plone). >> >> Does that help any? > > Duncan, > > Yes. I'm working on closing out several RTL bugs under Plone before > the next Plone release. One I would like to fix #7177 depends upon > patching the precedence of Kupu stylesheets in relation to RTL.css, > http://dev.plone.org/plone/ticket/8570. #8570 in turns depended upon > #8505 which I've fixed under Plone 3.2 branch and closed. > > Basically if I patched NuPlone stylesheet ordering (#7177) but not > Kupu's stylesheet ordering(#8570), Kupu stylying under the NuPLone > theme would break. Thus I wanted to make sure the issues were fixed > in order and that under the upcoming release all patches were applied > leaving no one part broken. > > As I fixed #8505 would it be alright to add the patches for Kupu > (#8570)? > So long as the fixes don't break older versions of Plone just go ahead. From devPyPlTw at verizon.net Tue Oct 28 19:56:25 2008 From: devPyPlTw at verizon.net (Ed Manlove) Date: Tue, 28 Oct 2008 13:56:25 -0500 Subject: [kupu-dev] Upcoming Plone release and Kupu changes In-Reply-To: References: <49036AA8.7090506@verizon.net> Message-ID: <49076059.2070101@verizon.net> Duncan Booth wrote: > Ed Manlove wrote: > >> As I fixed #8505 would it be alright to add the patches for Kupu >> (#8570)? >> > So long as the fixes don't break older versions of Plone just go ahead. > Duncan, Thanks for pointing out possible conflicts with older versions of Plone. My fix would have caused issues in previous versions and thus I made a minor correction which will handle such scenarios. I've retested under Plone vers 2.5, 3.0, and 3.1 with my fix passing under each. Now that I am ready to apply the patch should I be applying it to the 1.4 branch [http://codespeak.net/svn/kupu/branch/kupu-1.4]? and then merge it back into the trunk? Also should I add a note to the CHANGES.txt file? Ed From duncan.booth at suttoncourtenay.org.uk Tue Oct 28 22:25:45 2008 From: duncan.booth at suttoncourtenay.org.uk (Duncan Booth) Date: Tue, 28 Oct 2008 21:25:45 +0000 (UTC) Subject: [kupu-dev] Upcoming Plone release and Kupu changes References: <49036AA8.7090506@verizon.net> <49076059.2070101@verizon.net> Message-ID: Ed Manlove wrote: > Duncan Booth wrote: >> Ed Manlove wrote: >> >>> As I fixed #8505 would it be alright to add the patches for Kupu >>> (#8570)? >>> >> So long as the fixes don't break older versions of Plone just go ahead. >> > > Duncan, > > Thanks for pointing out possible conflicts with older versions of Plone. > My fix would have caused issues in previous versions and thus I made a > minor correction which will handle such scenarios. I've retested under > Plone vers 2.5, 3.0, and 3.1 with my fix passing under each. > > Now that I am ready to apply the patch should I be applying it to the > 1.4 branch [http://codespeak.net/svn/kupu/branch/kupu-1.4]? > and then merge it back into the trunk? No, just apply it directly to trunk. At some point I'll delete the branch and recreate it from trunk (I build the releases from trunk still). > Also should I add a note to the CHANGES.txt file? Yes please. From jordim at guellconsulting.com Wed Oct 29 08:47:34 2008 From: jordim at guellconsulting.com (Jordi Martinez) Date: Wed, 29 Oct 2008 08:47:34 +0100 Subject: [kupu-dev] kupu error when I try to insert some custom code In-Reply-To: <4902F362.6030504@johnnydebris.net> References: <48ABEA8B.1010507@guellconsulting.com> <48ABEC96.9090602@johnnydebris.net> <48FF0109.2090605@guellconsulting.com> <4902F362.6030504@johnnydebris.net> Message-ID: <49081516.1030208@guellconsulting.com> Guido Wesdorp escribi?: > Jordi Martinez wrote: >> var tnode = >> this.editor.getInnerDocument().createTextNode(texte); >> sel.replaceWithNode(tnode, true); > I have the feeling replaceWithNode doesn't work well with text > nodes... I wanted to try this out properly before responding, > unfortunately I don't seem to find the time to do so, so no promises, > just a guess... :| > > You may want to try a work-around like this: > > var doc = this.editor.getInnerDocument(); > var tempnode = doc.createElement('span'); > var tnode = doc.createTextNode(texte); > sel.replaceWithNode(tempnode, true); > tempnode.parentNode.replaceChild(tempnode, tnode); > sel.selectNodeContents(tnode); > > Again, not sure if it works, but may be worth a try... > > Cheers, > > Guido > Ok, Guido! Only having a way to try I feel more quiet I will try this alternatives today and I will send some response to the list Thanks again From jordim at guellconsulting.com Wed Oct 29 09:47:12 2008 From: jordim at guellconsulting.com (Jordi Martinez) Date: Wed, 29 Oct 2008 09:47:12 +0100 Subject: [kupu-dev] kupu error when I try to insert some custom code In-Reply-To: <4902F362.6030504@johnnydebris.net> References: <48ABEA8B.1010507@guellconsulting.com> <48ABEC96.9090602@johnnydebris.net> <48FF0109.2090605@guellconsulting.com> <4902F362.6030504@johnnydebris.net> Message-ID: <49082310.9090507@guellconsulting.com> Guido Wesdorp escribi?: > Jordi Martinez wrote: >> var tnode = >> this.editor.getInnerDocument().createTextNode(texte); >> sel.replaceWithNode(tnode, true); > I have the feeling replaceWithNode doesn't work well with text > nodes... I wanted to try this out properly before responding, > unfortunately I don't seem to find the time to do so, so no promises, > just a guess... :| > > You may want to try a work-around like this: > > var doc = this.editor.getInnerDocument(); > var tempnode = doc.createElement('span'); > var tnode = doc.createTextNode(texte); > sel.replaceWithNode(tempnode, true); > tempnode.parentNode.replaceChild(tempnode, tnode); > sel.selectNodeContents(tnode); > > Again, not sure if it works, but may be worth a try... > > Cheers, > > Guido > This way raises the same kind of errors I turn back to my previous try (at least it works on IE when you select some text) Someone who tried this (insert a text node) before? Thanks a lot From mustapha at city.dk Fri Oct 31 13:37:17 2008 From: mustapha at city.dk (Mustapha Benali) Date: Fri, 31 Oct 2008 13:37:17 +0100 Subject: [kupu-dev] I keep getting NS_ERROR_DOM_NOT_SUPPORTED_ERR Message-ID: <490AFBFD.6000805@city.dk> Hi all, I'm using kupu's refrencebrowser on a site that has: Plone 2.5.5, CMF-1.6.4, Zope (Zope 2.9.8-final, python 2.4.4, linux2), Five 1.4.4, Python 2.4.4 (#2, Apr 15 2008, 23:43:20) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)], PIL 1.1.6 kupu 1.4.11 I keep getting this error on FF3 and IE7: Error: uncaught exception: [Exception... "Operation is not supported" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "http://www.myserver.com/referencebrowser.js Line: 73"] when I select an object and click OK. When I try with Flock 0.7.14 it is working as it should be. Any help ? Regards, /Mustapha