#200: Kupu formlib widget
- Contents
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