Re: kupu: definition list
Guido Wesdorp <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Marc Petitmermet wrote: > the only way the definition list worked for me was that one has to > click *first* on the definition list button and *then* write the text. > but shouldn't it be possible to apply this style to existing text? > The definition lists are, in contrast to plain lists and most other elements, implemented by the Kupu team (well, me, actually) rather then a built-in browser feature. I know that they're far from perfect, a lot of semantics should still be implemented, but we decided to make them available anyway because the definition lists are available in Silva's forms editor too, not implementing them would mean that it wouldn't be possible to edit documents containing dts in Kupu without breaking the dts (also existing ones I think). I hope we (I?) get a chance to improve the implementation at some point. > one more thing: undo does not work with definition lists. > That will prove to be more difficult: since the undo *is* built-in browser behaviour and browsers don't seem to have a way to hook into the undo functionality, the undo button will only be able to undo actions performed from the browser, not the ones that we handle from JavaScript (such as creating tables, dts, images). Fixing that would mean we'd have to implement the undo functionality ourselves, which is *very* hard... Cheers, Guido