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 { Award } from "lucide-react";
|
||||
import { Logos, type LogosProps } from "@/editor/components/logos/logos";
|
||||
import { frontendAiMediaAdapter } from "@/editor/services/media-adapter";
|
||||
|
||||
export const logosEditor: ComponentConfig<LogosProps> = {
|
||||
label: "Press / Logos",
|
||||
@@ -33,7 +35,7 @@ export const logosEditor: ComponentConfig<LogosProps> = {
|
||||
defaultItemProps: { src: "", alt: "" },
|
||||
getItemSummary: (it) => it?.alt || "Logo",
|
||||
arrayFields: {
|
||||
src: { label: "Image URL", type: "text" },
|
||||
src: { label: "Image", ...imageField({ adapter: frontendAiMediaAdapter }) },
|
||||
alt: { label: "Alt text", type: "text", contentEditable: true },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user