Update plugin-media

This commit is contained in:
Rami Bitar
2026-06-05 12:05:39 -04:00
parent 244832db64
commit 555dade01a
12 changed files with 15 additions and 33 deletions

View File

@@ -1,8 +1,6 @@
import { ComponentConfig } from "@reacteditor/core";
import { imageField } from "@reacteditor/plugin-media/field";
import { Megaphone } from "lucide-react";
import { CTA, type CTAProps } from "@/components/cta/cta";
import { frontendAiMediaAdapter } from "@/services/media-adapter";
const ctaEditor: ComponentConfig<CTAProps> = {
label: "Call to action",
@@ -39,7 +37,7 @@ const ctaEditor: ComponentConfig<CTAProps> = {
href: { label: "Link", type: "text" },
},
},
imageUrl: { label: "Background image", ...imageField({ adapter: frontendAiMediaAdapter }) },
imageUrl: { label: "Background image", type: "image" },
align: {
label: "Alignment",
type: "radio",