#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 Mar 02, 2008 01:45 PM

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

 

Framework team vote

Posted by Martijn Pieters at Dec 13, 2007 10:10 PM
+1

Framework team vote

Posted by Andreas Zeidler at Dec 13, 2007 11:00 PM

Framework team vote

Posted by Raphael Ritz at Dec 17, 2007 01:23 PM
+1

Framework team vote

Posted by Tom Lazar at Dec 20, 2007 01:02 PM
+1

Framework team vote

Posted by Danny Bloemendaal at Dec 22, 2007 05:36 PM
+1