ui/build/markdown-editor/extensions/attachment/attachment-extension.svelte
ui/build/markdown-editor/extensions/attachment/attachment-extension.svelte
Functions
createFileAttachmentExtension()
function createFileAttachmentExtension(options): Node<FileAttachmentOptions, any>;Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/attachment/attachment-extension.svelte.d.ts:36
Parameters
| Parameter | Type |
|---|---|
options |
{ client: IFileUploadClient; translate?: (key, vars?) => string; } |
options.client |
IFileUploadClient |
options.translate? |
(key, vars?) => string |
Returns
Node<FileAttachmentOptions, any>
extractFileMetadata()
function extractFileMetadata(node):
| {
id?: string | null;
indexed_status?: string | null;
metadata?: | {
structure_hint: string;
summary: string;
}
| null;
name: string;
size: number;
type: string;
url: string | null | undefined;
}
| null;Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/attachment/attachment-extension.svelte.d.ts:35
Parameters
| Parameter | Type |
|---|---|
node |
ProsemirrorNode |
Returns
| {
id?: string | null;
indexed_status?: string | null;
metadata?: | {
structure_hint: string;
summary: string;
}
| null;
name: string;
size: number;
type: string;
url: string | null | undefined;
}
| null