We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 168a02a + 4574499 commit 7cdcf80Copy full SHA for 7cdcf80
news/201.bugfix
@@ -0,0 +1,2 @@
1
+Support collective.html2blocks to convert HTML to Volto blocks as a replacement for blocks-conversion-tool.
2
+@pbauer
src/plone/volto/browser/migrate_richtext.py
@@ -149,7 +149,9 @@ def get_blocks_from_richtext(
149
r = requests.post(service_url, headers=headers, json=payload)
150
r.raise_for_status()
151
slate_data = r.json()
152
- slate_data = slate_data["data"]
+ # blocks-conversion-tool vs. collective.html2blocks
153
+ if isinstance(slate_data, dict) and "data" in slate_data:
154
+ slate_data = slate_data["data"]
155
blocks = {}
156
uuids = []
157
# generate slate blocks
0 commit comments