首页 > 其他分享 >Test Obsidian Plugin

Test Obsidian Plugin

时间:2022-10-23 10:22:42浏览次数:39  
标签:files aasdfa Plugin Obsidian editor clipboardData Test evt

Hi, this is a test of my obsidian plugin!

image

Test Image Upload

public static void main(String...args) {
	System.out.println("Hello, World!")
}

Test Vim Input!!!

export default function() {
	console.log(`Hello, World!`)
}

image
image
image
image

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;

                    }

                }

  

            })

        );

image

image

image
image

/faimage

        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

相关文章

  • AtCoder Regular Contest 100 E-Or Plus Max
    DescriptionThereisanintegersequenceoflength\(2^N\):\(A_0,A_1,...,A_{2^N-1}\).(Notethatthesequenceis0-indexed.)ForeveryintegerKsatisfying......
  • LeetCode 1730. Shortest Path to Get Food
    原题链接在这里:https://leetcode.com/problems/shortest-path-to-get-food/题目:Youarestarvingandyouwanttoeatfoodasquicklyaspossible.Youwanttofind......
  • AtCoder Beginner Contest 274
    E-BoosterTSP问题变种,典中典。AC代码//Problem:E-Booster//Contest:AtCoder-キーエンスプログラミングコンテスト2022(AtCoderBeginner//Contest274)URL......
  • AtCoder Beginner Contest 263 Erasing Prime Pairs
    AtCoder传送门洛谷传送门题意有\(i\)种数,第\(i\)种数是\(a_i\),有\(b_i\)个。每次可以选择两个数\(x,y\)满足\(x+y\)为质数,将它们删除。问最多能删多少次。......
  • 自动化框架一:unittest
    <1>unittest是python中的测试框架,它是一个标准库。 <2>unittest框架的作用测试工程师的角度:组织、编写自动化测试用例 >批量执行用例>提供丰富的断言知识>可以生成......
  • Go常见错误总结1:'test' redeclared in this package
    Go常见错误总结1:'test'redeclaredinthispackage问题:'test'redeclaredinthispackage产生原因:变量名或方法名重名问题导致的,你这个变量和其他.go文件里面方......
  • pytest中的setup和teardown函数
    1、setup和teardown函数的作用setup函数:主要用来做初始化作用,比如数据库连接、前置参数的赋值等teardown函数:测试后的清除作用,比如参数的还原或销毁,关闭数据库连接等2、分类......
  • Logstash 入门实战(3)--input plugin 介绍
    本文主要概述Logstash的一些最受欢迎的输入插件,以大致了解Logstash的用途;相关的环境及软件信息如下:CentOS 7.9、Logstash8.2.2。1、什么是Logstashinput插件Log......
  • D. Problem with Random Tests
    D.ProblemwithRandomTestsYouaregivenastring$s$consistingof$n$characters.Eachcharacterof$s$iseither$0$or$1$.Asubstringof$s$isaconti......
  • container runtime network not ready: NetworkReady=false reason:NetworkPlugin
    containerruntimenetworknotready:NetworkReady=falsereason:NetworkPlugin,由于没有插件cni解决:修改kubelet.conf配置文件去掉相关配置参数–network-plugin=cni,重......