You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a default value in a RichText field, this value needs to be passed through a IJsonCompatible adapter, but we are missing the converter for RichTextValue objects, and thus the edit form rendering breaks in Volto.
Dexterity object definition:
download_full_dataset_text=RichText(
title=_(
'Text of the "Download full dataset entry',
),
description=_(
"Enter the text that will be shown in the Download tab",
),
default=(
"<p>If you want to download the full dataset, click <a"' href="/en/how-to-guides/how-to-download-spatial-data/how-to-download-m2m">here</a>'" to learn more.</p>"
),
required=False,
readonly=False,
)
plone.restapi fail when rendering the Volto edit form:
The problem is that it is a converter which requires a context (in order to resolve any relative links within HTML rich text, IIRC). And in this traceback, the object being serialized is a default value in a type schema, so there is no context.
When defining a default value in a RichText field, this value needs to be passed through a
IJsonCompatible
adapter, but we are missing the converter forRichTextValue
objects, and thus the edit form rendering breaks in Volto.Dexterity object definition:
plone.restapi fail when rendering the Volto edit form:
The text was updated successfully, but these errors were encountered: