ClipBoardManager
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:9
Properties
app
app:
App
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:13
Reference to the app
info
info:
MarkdownView
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:17
Reference to the Editor View
Methods
getPath()
getPath():
string
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:22
Get current path of editor view for determining storage location embed
Returns
string
handleDataTransfer()
handleDataTransfer(
data
):null
|Promise
<void
>
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:28
Process incoming data (image, text, url, html)
Parameters
data
Returns
null
| Promise
<void
>
handleDragOver()
handleDragOver(
event
):void
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:32
Handle an incoming drag-over event
Parameters
event
Returns
void
handleDrop()
handleDrop(
event
):boolean
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:36
Handle an incoming drag-drop event
Parameters
event
Returns
boolean
handleDropIntoEditor()
handleDropIntoEditor(
event
):null
|string
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:40
Process a drop event into the editor
Parameters
event
Returns
null
| string
handlePaste()
handlePaste(
event
):boolean
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:44
Handle an incoming paste event
Parameters
event
Returns
boolean
insertAttachmentEmbed()
insertAttachmentEmbed(
file
,replace
):Promise
<void
>
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:48
Insert single file as embed into the editor
Parameters
file
replace
boolean
Returns
Promise
<void
>
insertFiles()
insertFiles(
files
):Promise
<void
>
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:52
Insert files from drop-event into the editor
Parameters
files
Returns
Promise
<void
>
saveAttachment()
saveAttachment(
name
,extension
,data
,replace
):Promise
<void
>
Defined in: src/obsidian/internals/ClipBoardManager.d.ts:58
Save an attachment of specified name and extension to the vault
Parameters
name
string
extension
string
data
replace
boolean
Returns
Promise
<void
>
Remark
Invokes insertAttachmentEmbed