Hi, this is a test of my obsidian plugin!
Test Image Upload
public static void main(String...args) {
System.out.println("Hello, World!")
}
Test Vim Input!!!
export default function() {
console.log(`Hello, World!`)
}
aasdfa
aasdfa
aasdfa
aasdfa
aasdfa
this.registerEvent(
this.app.workspace.on('editor-paste', (evt, editor, view) => {
console.log('editor-paste');
if (evt.clipboardData) {
if (evt.clipboardData.files.length !== 0) {
newClipboardMediaObject(this, evt.clipboardData.files, editor, view);
evt.preventDefault();
return;
}
}
})
);
/fa
this.registerEvent(
this.app.workspace.on('editor-paste', (evt, editor, view) => {
if (evt.clipboardData) {
if (evt.clipboardData.files.length !== 0) {
console.log('files')
newClipboardMediaObject(this, evt.clipboardData.files, editor, view);
evt.preventDefault();
}
}
})
);
标签:files,aasdfa,Plugin,Obsidian,editor,clipboardData,Test,evt
From: https://www.cnblogs.com/lilpig/p/16817995.html