From dmunicio at gmail.com Thu Mar 1 13:44:23 2007 From: dmunicio at gmail.com (Diego Municio) Date: Thu, 1 Mar 2007 13:44:23 +0100 Subject: [kupu-dev] Paste image from msword Message-ID: <262223130703010444l44c1936ey1ed674aa33366bd4@mail.gmail.com> I want to paste images form msword and then kupu automatically upload them. I have read the following post in the mailing list archives: -- >* Is it even possible with Javascript to paste an image? * Not so far as I know. If the image doesn't exist on the server, I don't think Javascript has any way to get hold of the image data and create an object on the server. >* *>* I know that Kupu doesn't do this now, but I am trying to get my *>* coworkers to use Kupu instead of Microsoft Word. They are used to taking *>* screenshots and just pasting them into the user guides they create. * You can copy/paste an image from IE, but it copies the original image tag and that isn't usually what you wanted. I'm not sure what FF does: it will happily offer the paste menu option after you've copied an image but nothing gets pasted. -- But I would like to know your opinion about this workaround: It's clear that an upload is currenly working. I would create a
which gets filled with all src's from tags pasted Add an onpaste event which calls: - my fill_form function - my_form.submit - and fixes srcs in tags to point to the new plone images. I am not a javascript guru, but I don't see it impossible so please correct me if I am saying nonsenses before I started to write code. I think that it would be a nice feature! Thanks for your helping, Diego Municio -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/kupu-dev/attachments/20070301/e0784745/attachment.htm From duncan.booth at suttoncourtenay.org.uk Fri Mar 2 16:23:23 2007 From: duncan.booth at suttoncourtenay.org.uk (Duncan Booth) Date: Fri, 2 Mar 2007 15:23:23 +0000 (UTC) Subject: [kupu-dev] Paste image from msword References: <262223130703010444l44c1936ey1ed674aa33366bd4@mail.gmail.com> Message-ID: "Diego Municio" wrote: > But I would like to know your opinion about this workaround: > > It's clear that an upload is currenly working. > I would create a which gets filled with all src's from src="file:\\\..."> tags pasted > Add an onpaste event which calls: > - my fill_form function > - my_form.submit > - and fixes srcs in tags to point to the new plone images. > > I am not a javascript guru, but I don't see it impossible so please > correct me if I am saying nonsenses > before I started to write code. > > I think that it would be a nice feature! If I understand you correctly, you want Kupu to create a form with image upload controls for all the images with file:// urls and upload those images to the server then fix the URLs in the document? If Kupu could do that then any website you visited could upload any arbitrary files from your hard disc, so say goodbye to your bank account details. Fortunately the only way to upload a file is for the user to select the file into a file upload control. There is no way to automate that process. What would be doable would be for kupu to refuse to save the edited document if it contains any file:// urls. It could maybe even create a form as you suggest with the file:// urls extracted from the document displayed and a file upload box for each of them. The user would then have to make each upload control match the displayed url manually. From emoseley at ocme.unc.edu Fri Mar 2 18:10:22 2007 From: emoseley at ocme.unc.edu (Edmund Moseley) Date: Fri, 02 Mar 2007 12:10:22 -0500 Subject: [kupu-dev] how to escape out of kupu to next form field? Message-ID: <1172855422.11616.13.camel@emdell> I want to be able to navigate all the fields in my form using only the keyboard. It is usually possible to do this by tabbing from one field to the next. Unfortunately, when a kupu field is in focus, it renders a tab rather than skipping to the next field (and rightly so for default). How can I override this behaviour or create some other keyboard shortcut to skip to the next field? Any advice on how best to approach this is greatly appreciated. Edmund From duncan.booth at suttoncourtenay.org.uk Mon Mar 5 10:56:22 2007 From: duncan.booth at suttoncourtenay.org.uk (Duncan Booth) Date: Mon, 5 Mar 2007 09:56:22 +0000 (UTC) Subject: [kupu-dev] how to escape out of kupu to next form field? References: <1172855422.11616.13.camel@emdell> Message-ID: Edmund Moseley wrote: > I want to be able to navigate all the fields in my form using only the > keyboard. It is usually possible to do this by tabbing from one field to > the next. Unfortunately, when a kupu field is in focus, it renders a tab > rather than skipping to the next field (and rightly so for default). Under what circumstances could rendering a tab actually be the desired behaviour? Besides, at least on Firefox it doesn't always render a tab (if you are in a bulleted list it indents it instead). > How can I override this behaviour or create some other keyboard shortcut > to skip to the next field? to be honest, I don't know what the best solution would be. If you can figure out how to make tab always do its primary function (which I think it next/previous field) then I could live with that. Anyone else care to comment? > > Any advice on how best to approach this is greatly appreciated. > Edmund > From micbuffa at gmail.com Tue Mar 13 15:00:48 2007 From: micbuffa at gmail.com (michel buffa) Date: Tue, 13 Mar 2007 15:00:48 +0100 Subject: [kupu-dev] Save page content without quitting the editor Message-ID: Hi ! We use kupu 1.4b3 in our wiki (you can try it at http://argentera.inria.fr/wiki, register and edit the SandBox for instance). Our users ask for a "save" and a "save and exit" button. In the current version, when one saves the page, it quits the editor. How can we implement an automatic save or a "save without quitting". I have also plenty of problems with mac users who copy and paste non iso chars in kupu (it breaks further treatment in our software). If one clicks "cleanup expressions" after the paste and before daving, everything is ok (I added the right expression filters to the ones provided in kupu/common/kupuform.html). How can I call this just after a paste, or just before saving the page content ? Thanks in advance ! Michel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/kupu-dev/attachments/20070313/68b9e484/attachment.htm From darian.schramm at gmail.com Tue Mar 27 15:54:30 2007 From: darian.schramm at gmail.com (darian schramm) Date: Tue, 27 Mar 2007 09:54:30 -0400 Subject: [kupu-dev] Allowing javascript in Plone RichText field Message-ID: <67edaf4b0703270654m1eca1ce4gf5a40c78023692f3@mail.gmail.com> I'm attempting to allow adding javascript ad placements within the body field of article types in Plone 2.5.2 (subclassed RichDocument types). Adding the code while in HTML editing mode works, but on save the code gets encoded, not allowing the js to run. Is there a way to bypass this from Kupu or is Plone doing the encoding? I can see that on switching away from HTML editing mode is when it appears to be happening, making me believe this is something in Kupu and not Plone specific. -- Darian V Schramm From duncan.booth at suttoncourtenay.org.uk Tue Mar 27 16:18:44 2007 From: duncan.booth at suttoncourtenay.org.uk (Duncan Booth) Date: Tue, 27 Mar 2007 14:18:44 +0000 (UTC) Subject: [kupu-dev] Allowing javascript in Plone RichText field References: <67edaf4b0703270654m1eca1ce4gf5a40c78023692f3@mail.gmail.com> Message-ID: "darian schramm" wrote: > I'm attempting to allow adding javascript ad placements within the > body field of article types in Plone 2.5.2 (subclassed RichDocument > types). > > Adding the code while in HTML editing mode works, but on save the code > gets encoded, not allowing the js to run. Is there a way to bypass > this from Kupu or is Plone doing the encoding? > > I can see that on switching away from HTML editing mode is when it > appears to be happening, making me believe this is something in Kupu > and not Plone specific. > I'm not convinced how usable kupu would be if you permit users to enter javascript (remember the javascript is going to try to run while you are editing), but if you post an example of what you mean by the code being encoded I'll see what I can suggest. Is it not possible to achieve what you want by extracting the javascript out to a separate .js file and then linking it in to the appropriate DOM elements based on particular class names? From lists at elvix.com Wed Mar 28 09:53:49 2007 From: lists at elvix.com (=?ISO-8859-15?Q?Geir_B=E6kholt?=) Date: Wed, 28 Mar 2007 09:53:49 +0200 Subject: [kupu-dev] how to escape out of kupu to next form field? In-Reply-To: References: <1172855422.11616.13.camel@emdell> Message-ID: <460A1F0D.1080507@elvix.com> Duncan Booth wrote: > Edmund Moseley wrote: > >> I want to be able to navigate all the fields in my form using only the >> keyboard. It is usually possible to do this by tabbing from one field to >> the next. Unfortunately, when a kupu field is in focus, it renders a tab >> rather than skipping to the next field (and rightly so for default). > > Under what circumstances could rendering a tab actually be the desired > behaviour? Besides, at least on Firefox it doesn't always render a tab (if > you are in a bulleted list it indents it instead). > >> How can I override this behaviour or create some other keyboard shortcut >> to skip to the next field? > > to be honest, I don't know what the best solution would be. If you can > figure out how to make tab always do its primary function (which I think it > next/previous field) then I could live with that. Anyone else care to > comment? I agree that tab should mean "next form field" if Kupu is rendered in a form. -- __________________________________________________________________ Geir B?kholt ? Plone Solutions ? http://plonesolutions.com __________________________________________________________________ Plone Foundation ? http://plone.org/foundation ? Protecting Plone From sean.upton at uniontrib.com Wed Mar 28 19:10:20 2007 From: sean.upton at uniontrib.com (sean.upton at uniontrib.com) Date: Wed, 28 Mar 2007 10:10:20 -0700 Subject: [kupu-dev] how to escape out of kupu to next form field? In-Reply-To: <460A1F0D.1080507@elvix.com> Message-ID: <2DBD6171D5E06F4E9B783D6E8E0DD8A802207617@DESI.hollywood.sduniontrib.com> > I agree that tab should mean "next form field" if Kupu is > rendered in a form. My 0.02: supposing there was an alternate keystroke to provide indentation, and that indentation was tab default when Kupu's visual state in Plone is maximized to fill the screen? Sean +----------------------------------------------------------+ Sean Upton SignOnSanDiego.com Site Technology Supervisor The San Diego Union-Tribune 619.718.5241 sean.upton at signonsandiego.com 350 Camino De La Reina San Diego, CA 92108 Plone Powered! plone.org ++ python.org ++ zope.org +----------------------------------------------------------+ From limi at plone.org Wed Mar 28 20:23:55 2007 From: limi at plone.org (Alexander Limi) Date: Wed, 28 Mar 2007 11:23:55 -0700 Subject: [kupu-dev] how to escape out of kupu to next form field? In-Reply-To: <460A1F0D.1080507@elvix.com> References: <1172855422.11616.13.camel@emdell> <460A1F0D.1080507@elvix.com> Message-ID: On 3/28/07, Geir B?kholt wrote: > Duncan Booth wrote: > > Under what circumstances could rendering a tab actually be the desired > > behaviour? Besides, at least on Firefox it doesn't always render a tab (if > > you are in a bulleted list it indents it instead). Rendering a tab never makes sense in body text (since there is no such thing in HTML), so if we can make it go to the next form field *unless* it is inside a table or a list, that would be optimal. > > to be honest, I don't know what the best solution would be. If you can > > figure out how to make tab always do its primary function (which I think it > > next/previous field) then I could live with that. Anyone else care to > > comment? > > I agree that tab should mean "next form field" if Kupu is rendered in a > form. Absolutely. -- Alexander Limi ? http://limi.net