Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: descendants constraint (#4609)

Bogdan Chadkin2d7cfba8a4ea
diff --git a/packages/react-sdk/src/core-components.ts b/packages/react-sdk/src/core-components.ts
index 7873aa1f23..9053d56f4c 100644
--- a/packages/react-sdk/src/core-components.ts
+++ b/packages/react-sdk/src/core-components.ts
@@ -96,7 +96,7 @@ const descendantMeta: WsComponentMeta = {
icon: PaintBrushIcon,
constraints: {
relation: "parent",
- component: { $eq: "HtmlEmbed" },
+ component: { $in: ["HtmlEmbed", "MarkdownEmbed"] },
},
};