Roamedit-DIY功能-复制SM外链

sheen 2021-11-10 1079

如名,复制支持supermemo18的外链,然后通过SM18的粘贴为html内容,实现超连接

//author:sheen
//version:1.2
//time:2021-11-10
NHook.add({
	after_nodemenu_run() {
        plugin.menu.addItems("node",{
            re_to_sm: {
                 label: "复制SM外链",
                 icon: "home",
                 action() {
                   const reky = this.nv.ky;  
                   const userid  = USER_ID;
                   sm_url = `<a href='roamedit://open/nk${userid}/${reky}'>查看答案</a>`
                   copyToClipboard(sm_url)  
                }
             }
         })
    }
 })
快速回复
最新回复 (6)
  • sheen 2021-11-10
    0 2
    使用教程等有空再补,这个功能应该没什么人会用到的
  • sheen 2021-11-12
    0 3
    //title:复制纯文字SM外链
    //author:sheen
    //version:1.3
    //time:2021-11-12
    NHook.add({
    	after_nodemenu_run() {
            plugin.menu.addItems("node",{
                re_to_sm02: {
                     label: "复制纯文字SM外链",
                     icon: "home",
                     action() {
                       const reky = this.nv.ky;  
                       const userid  = USER_ID;
                       const retext = this.nv.oriData.ori
                       sm_url = `<a href='roamedit://open/nk${userid}/${reky}'>查看原文</a>`
                       sm_txt = `<strong><p style="font-size:30px;">${retext}</p><br><br><p style="font-size:20px;">${sm_url}</p></strong>`
                       copyToClipboard(sm_txt)  
                    }
                 }
             })
        }
     })
    
  • 泉毅 2021-11-19
    0 4
    你好,能详细描述一下这个插件怎么用么?我把代码拷贝进入RE的代码块中运行后,没有试出该怎么用。要怎样和SM建立联系,我目前也在用SM.
  • sheen 2021-11-19
    0 5
    泉毅 你好,能详细描述一下这个插件怎么用么?我把代码拷贝进入RE的代码块中运行后,没有试出该怎么用。要怎样和SM建立联系,我目前也在用SM.
    我后面会出视频更新到B站的
  • 13978454088 2022-10-6
    0 6
    请问现在有视频了吗?
  • 13978454088 2022-10-6
    0 7
    https://club.roamedit.com/club/?thread-1895.htm 看到了,谢谢
返回