MCPcopy Index your code
hub / github.com/editablejs/editable / insertFile

Method insertFile

packages/editor/src/plugin/editable.ts:142–142  ·  view source on GitHub ↗
(file: File, at?: Range)

Source from the content-addressed store, hash-verified

140 insertFromClipboard(at?: Range): void
141 insertTextFromClipboard(at?: Range): void
142 insertFile(file: File, at?: Range): void
143 on: <T extends EventType>(type: T, handler: EventHandler<T>, prepend?: boolean) => void
144 once: <T extends EventType>(type: T, handler: EventHandler<T>, prepend?: boolean) => void
145 off: <T extends EventType>(type: T, handler: EventHandler<T>) => void

Callers 1

withDataTransferFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected