Skip to content

ClipboardManager.insertAttachmentEmbed method

ClipboardManager › insertAttachmentEmbed

Unofficial

Insert single file as embed into the editor.

Signature:

insertAttachmentEmbed(file: TAbstractFile, replace: boolean): Promise<void>

Parameters:

Parameter Type Description
file TAbstractFile File to embed.
replace boolean Whether to replace the current selection.

Returns: Promise<void>A promise that resolves when the embed is inserted.