Add media and AI plugins, refresh editor configs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { ComponentConfig } from "@reacteditor/core";
|
||||
import { imageField } from "@reacteditor/plugin-media/field";
|
||||
import { Megaphone } from "lucide-react";
|
||||
import { CTA, type CTAProps } from "@/editor/components/cta/cta";
|
||||
import { frontendAiMediaAdapter } from "@/editor/services/media-adapter";
|
||||
|
||||
export const ctaEditor: ComponentConfig<CTAProps> = {
|
||||
label: "Call to action",
|
||||
@@ -37,7 +39,7 @@ export const ctaEditor: ComponentConfig<CTAProps> = {
|
||||
href: { label: "Link", type: "text" },
|
||||
},
|
||||
},
|
||||
imageUrl: { label: "Background image URL", type: "text" },
|
||||
imageUrl: { label: "Background image", ...imageField({ adapter: frontendAiMediaAdapter }) },
|
||||
align: {
|
||||
label: "Alignment",
|
||||
type: "radio",
|
||||
|
||||
Reference in New Issue
Block a user