From roche at upfrontsystems.co.za Tue Jun 23 20:19:17 2009 From: roche at upfrontsystems.co.za (=?ISO-8859-1?Q?Roch=E9?= Compaan) Date: Tue, 23 Jun 2009 20:19:17 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces Message-ID: <1245781157.29069.136.camel@didi> Hi there My development team is trying to extend Kupu with some features to allow editing of XML in other namespaces, for example MathML. We did manage to embed MathML as CDATA but this is not ideal. Our efforts are checked into the Plone collective. http://svn.plone.org/svn/collective/collective.matheditor/ FYI, in addition to MathML we also want to extend it to embed QML (http://cnx.org/content/m10136/latest/). For a start, we would like to know what must be done to tell Kupu to leave alone tags in other namespaces. Furthermore, we would like to know how you can make Kupu aware of the structure of the embedded XML. Is what we are trying to do feasible, or is Kupu meant to edit HTML only? Any pointers will be highly appreciated! -- Roch? Compaan Upfront Systems http://www.upfrontsystems.co.za From ivaldes at hal-pc.org Tue Jun 23 22:37:37 2009 From: ivaldes at hal-pc.org (Ignacio Valdes) Date: Tue, 23 Jun 2009 15:37:37 -0500 Subject: [kupu-dev] Kupu Windows stand-alone? Message-ID: <311679a80906231337h7de1e053w291e78cfd568461c@mail.gmail.com> Hi all, Is there such a thing as a stand-alone Kupu editor for Windows? -- IV From johnny at johnnydebris.net Wed Jun 24 08:47:53 2009 From: johnny at johnnydebris.net (Johnny deBris) Date: Wed, 24 Jun 2009 08:47:53 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <1245781157.29069.136.camel@didi> References: <1245781157.29069.136.camel@didi> Message-ID: <4A41CC19.90604@johnnydebris.net> Roch? Compaan wrote: > Is what we are trying to do feasible, or is Kupu meant to edit HTML > only? > > I don't think it's feasible, unfortunately the 'contentEditable' editor component on which Kupu is based isn't very flexible, and to make matters worse non-HTML parts of the DOM are not accessible from JavaScript. I think if you want to write a 'proper' XML editor in JavaScript, you will want to avoid the contentEditable component, perhaps by implementing your own cursor and editable area (though that won't be easy), or perhaps by using some of Mozilla/Firefox's XML editing support, which as far as I understood is a lot more flexible... You might want to take a look at the Bitflux editor (http://bitfluxeditor.org/), an XML editor written in JavaScript that doesn't use contentEditable, perhaps you can use it as-is, else it might provide you with some clues. Cheers, Guido From aaltepet at altepeter.net Wed Jun 24 14:15:04 2009 From: aaltepet at altepeter.net (Andy Altepeter) Date: Wed, 24 Jun 2009 07:15:04 -0500 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <4A41CC19.90604@johnnydebris.net> References: <1245781157.29069.136.camel@didi> <4A41CC19.90604@johnnydebris.net> Message-ID: <200906240715.04509.aaltepet@altepeter.net> I don't know about javascript restrictions, but I know that http://xopus.com is an in-browser wysiwyg xml editor. Check out the demos -- they're xml (not html) and pretty sweet. Andy On Wednesday 24 June 2009 01:47:53 am Johnny deBris wrote: > Roch? Compaan wrote: > > Is what we are trying to do feasible, or is Kupu meant to edit HTML > > only? > > I don't think it's feasible, unfortunately the 'contentEditable' editor > component on which Kupu is based isn't very flexible, and to make > matters worse non-HTML parts of the DOM are not accessible from > JavaScript. I think if you want to write a 'proper' XML editor in > JavaScript, you will want to avoid the contentEditable component, > perhaps by implementing your own cursor and editable area (though that > won't be easy), or perhaps by using some of Mozilla/Firefox's XML > editing support, which as far as I understood is a lot more flexible... > > You might want to take a look at the Bitflux editor > (http://bitfluxeditor.org/), an XML editor written in JavaScript that > doesn't use contentEditable, perhaps you can use it as-is, else it might > provide you with some clues. > > Cheers, > > Guido > _______________________________________________ > kupu-dev mailing list > kupu-dev at codespeak.net > http://codespeak.net/mailman/listinfo/kupu-dev From roche at upfrontsystems.co.za Wed Jun 24 21:08:59 2009 From: roche at upfrontsystems.co.za (=?ISO-8859-1?Q?Roch=E9?= Compaan) Date: Wed, 24 Jun 2009 21:08:59 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <200906240715.04509.aaltepet@altepeter.net> References: <1245781157.29069.136.camel@didi> <4A41CC19.90604@johnnydebris.net> <200906240715.04509.aaltepet@altepeter.net> Message-ID: <1245870539.29069.233.camel@didi> Xopus doesn't seem to be open source and the fact that bitflux doesn't work with IE takes it out of consideration. Do you know what javascript library and what function in Kupu is responsible for stripping away non-HTML tags? -- Roch? Compaan Upfront Systems http://www.upfrontsystems.co.za On Wed, 2009-06-24 at 07:15 -0500, Andy Altepeter wrote: > I don't know about javascript restrictions, but I know that http://xopus.com > is an in-browser wysiwyg xml editor. Check out the demos -- they're xml (not > html) and pretty sweet. > > Andy > > On Wednesday 24 June 2009 01:47:53 am Johnny deBris wrote: > > Roch? Compaan wrote: > > > Is what we are trying to do feasible, or is Kupu meant to edit HTML > > > only? > > > > I don't think it's feasible, unfortunately the 'contentEditable' editor > > component on which Kupu is based isn't very flexible, and to make > > matters worse non-HTML parts of the DOM are not accessible from > > JavaScript. I think if you want to write a 'proper' XML editor in > > JavaScript, you will want to avoid the contentEditable component, > > perhaps by implementing your own cursor and editable area (though that > > won't be easy), or perhaps by using some of Mozilla/Firefox's XML > > editing support, which as far as I understood is a lot more flexible... > > > > You might want to take a look at the Bitflux editor > > (http://bitfluxeditor.org/), an XML editor written in JavaScript that > > doesn't use contentEditable, perhaps you can use it as-is, else it might > > provide you with some clues. > > > > Cheers, > > > > Guido > > _______________________________________________ > > kupu-dev mailing list > > kupu-dev at codespeak.net > > http://codespeak.net/mailman/listinfo/kupu-dev > > From roche at upfrontsystems.co.za Wed Jun 24 21:24:07 2009 From: roche at upfrontsystems.co.za (=?ISO-8859-1?Q?Roch=E9?= Compaan) Date: Wed, 24 Jun 2009 21:24:07 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <4A41CC19.90604@johnnydebris.net> References: <1245781157.29069.136.camel@didi> <4A41CC19.90604@johnnydebris.net> Message-ID: <1245871447.29069.235.camel@didi> On Wed, 2009-06-24 at 08:47 +0200, Johnny deBris wrote: > I don't think it's feasible, unfortunately the 'contentEditable' editor > component on which Kupu is based isn't very flexible, and to make > matters worse non-HTML parts of the DOM are not accessible from > JavaScript. I think if you want to write a 'proper' XML editor in > JavaScript, you will want to avoid the contentEditable component, > perhaps by implementing your own cursor and editable area (though that > won't be easy), or perhaps by using some of Mozilla/Firefox's XML > editing support, which as far as I understood is a lot more flexible... Would it not be possible to simply extend kupucontentfilters.js to include support for MathML in addition to XHTML? This seems to be the library where xhtml validation takes place? -- Roch? Compaan Upfront Systems http://www.upfrontsystems.co.za