MCPcopy
hub / github.com/udecode/plate / InsertMediaOptions

Interface InsertMediaOptions

packages/media/src/lib/media/insertMedia.ts:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { insertImage, insertMediaEmbed } from '../..';
6
7export interface InsertMediaOptions extends InsertNodesOptions {
8 /**
9 * Default onClick is getting the image url by calling this promise before
10 * inserting the image.
11 */
12 type?: string;
13
14 getUrl?: () => Promise<string>;
15}
16
17export const insertMedia = async <E extends SlateEditor>(
18 editor: E,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…