[kupu-dev] Kupu form field
yuppie
y.2007- at wcm-solutions.de
Sun Feb 11 21:35:08 CET 2007
Hi!
By default Kupu is a 'document-centric' editor. But - as the Plone
integration demonstrates - Kupu can also be used as form field.
In 'common' there are kupuinit_form.js and kupuform.html. But this
sample implementation is still 'document-centric' - it just uses a form
for submitting changes.
I'd like to have a sample implementation in 'common' that behaves more
like the Plone integration. A lot of work has been done for Plone that
seems to be generally useful. A sample implementation could make more
obvious which code is generally useful and how to use it outside Plone.
Instead of adding a new sample implementation, I propose to modify
kupuinit_form.js and kupuform.html for this purpose.
As a first step, I'd like to modify prepareForm(), making it behave more
like Plone's saveDataToField(). And I like to add a new kupuconfig
option 'body_only', that allows to save only the body content, not a
complete XHTML document.
Any objections?
@ Duncan:
Would you mind if a make some small changes in kupuploneinit.js?
Currently it is very hard to read the diffs between kupuploneinit.js and
kupuinit_form.js. Some whitespace / comment / order syncing would make
it much easier.
Cheers,
Yuppie
More information about the kupu-dev
mailing list