#200: Kupu formlib widget

Contents
  1. Definitions
  2. Motivation
  3. Assumptions
  4. Proposal
  5. Implementation
  6. Deliverables
  7. Risks
  8. Progress log
  9. Participants
by Martin Aspeli last modified Jan 21, 2010 07:28 AM

At the moment, formlib forms (including edit forms) cannot use the Kupu visual editor. We need a custom widget for this.

Proposed by
Martin Aspeli
Proposal type
User interface
Assigned to release
Repository branch
plip200-kupu-widget
State
completed

Definitions

 

Motivation

To enable formlib-based add/edit forms and standalone forms to be realistic alternatives to the Archetypes-based kind, we need a full set of widgets. The Kupu/WYSIWYG widget is one of the missing pieces.

Assumptions

 

Proposal

Add a WYSIWYG widget to plone.app.form.widgets.

Implementation

This is implemented on the PLIP branch. It can be used in a formlib form like so:

from plone.app.form.widgets.wysiwygwidget import WYSIWYGWidget

...

class IStaticPortlet(IPortletDataProvider):

...

    text = schema.Text(title=_(u"Text"),
                       description=_(u"The text to render"),
                       required=True)
...

class EditForm(base.EditForm):
    form_fields = form.Fields(IStaticPortlet)
    form_fields['text'].custom_widget = WYSIWYGWidget

Deliverables

 

Risks

 

Progress log

  • Widget implemented, awaiting review

Participants

 

Comments (5)

Martijn Pieters Dec 13, 2007 10:10 PM
+1
Andreas Zeidler Dec 13, 2007 11:00 PM
Raphael Ritz Dec 17, 2007 01:23 PM
+1
Tom Lazar Dec 20, 2007 01:02 PM
+1
Danny Bloemendaal Dec 22, 2007 05:36 PM
+1