[kupu-dev] Extending Kupu to edit XML in another namespaces

Johnny deBris johnny at johnnydebris.net
Wed Jun 24 08:47:53 CEST 2009


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


More information about the kupu-dev mailing list