Commit c4858db1 authored by Romain Courteaud's avatar Romain Courteaud

Render fields css classes and extras even if the field is not editable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45322 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e473c85e
No related merge requests found
......@@ -28,6 +28,7 @@
##############################################################################
from Products.Formulator import Widget, Validator
from Products.Formulator.Widget import render_element
from Products.Formulator.Field import ZMIField
from Products.Formulator.DummyField import fields
from Products.ERP5Type.Utils import convertToUpperCase
......@@ -129,7 +130,10 @@ class EditorWidget(Widget.TextAreaWidget):
"""
if value is None:
value = ''
return value
return render_element("div",
css_class=field.get_value('css_class'),
contents=value,
extra=field.get_value('extra'))
EditorWidgetInstance = EditorWidget()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment