🎨 拖拽资源文件到编辑器中 使用 file:// 绝对路径并链接 功能修改为按住 Alt https://github.com/siyuan-note/siyuan/issues/5795

This commit is contained in:
Liang Ding 2022-09-02 22:02:34 +08:00
parent fe87dc2170
commit 4bf5f8de10
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
6 changed files with 94 additions and 22 deletions

View File

@ -5,7 +5,7 @@
"id": "20200924100744-br924ar",
"title": "Assets",
"type": "doc",
"updated": "20220824172918"
"updated": "20220902220108"
},
"Children": [
{
@ -96,7 +96,7 @@
"ListData": {},
"Properties": {
"id": "20220824172815-ckivl7c",
"updated": "20220824172815"
"updated": "20220902220108"
},
"Children": [
{
@ -108,7 +108,7 @@
},
"Properties": {
"id": "20220824172815-q1oeusj",
"updated": "20220824172815"
"updated": "20220902220108"
},
"Children": [
{
@ -116,7 +116,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20220824172815-fqyy0l6",
"updated": "20220824172815"
"updated": "20220902220108"
},
"Children": [
{
@ -128,7 +128,7 @@
},
{
"Type": "NodeText",
"Data": "Copy as a resource file and insert"
"Data": "Copy as an asset and insert"
},
{
"Type": "NodeKbdCloseMarker"
@ -168,7 +168,7 @@
},
"Properties": {
"id": "20220824172815-0lsclx1",
"updated": "20220824172815"
"updated": "20220902220045"
},
"Children": [
{
@ -176,7 +176,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20220824172815-dqfasin",
"updated": "20220824172815"
"updated": "20220902220045"
},
"Children": [
{
@ -214,6 +214,30 @@
"Type": "NodeKbdCloseMarker"
}
]
},
{
"Type": "NodeText",
"Data": ", or hold down "
},
{
"Type": "NodeKbd",
"Data": "kbd",
"Children": [
{
"Type": "NodeKbdOpenMarker"
},
{
"Type": "NodeText",
"Data": "Alt"
},
{
"Type": "NodeKbdCloseMarker"
}
]
},
{
"Type": "NodeText",
"Data": " and drag in"
}
]
}

View File

@ -5,7 +5,7 @@
"id": "20200915214115-42b8zma",
"title": "资源文件",
"type": "doc",
"updated": "20220824172745"
"updated": "20220902215702"
},
"Children": [
{
@ -96,7 +96,7 @@
"ListData": {},
"Properties": {
"id": "20220824172203-etwu4qu",
"updated": "20220824172531"
"updated": "20220902215702"
},
"Children": [
{
@ -168,7 +168,7 @@
},
"Properties": {
"id": "20220824172403-agsj358",
"updated": "20220824172531"
"updated": "20220902215702"
},
"Children": [
{
@ -176,7 +176,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20220824172403-0fkrw8o",
"updated": "20220824172531"
"updated": "20220902215702"
},
"Children": [
{
@ -214,6 +214,30 @@
"Type": "NodeKbdCloseMarker"
}
]
},
{
"Type": "NodeText",
"Data": ",或者按住 "
},
{
"Type": "NodeKbd",
"Data": "kbd",
"Children": [
{
"Type": "NodeKbdOpenMarker"
},
{
"Type": "NodeText",
"Data": "Alt"
},
{
"Type": "NodeKbdCloseMarker"
}
]
},
{
"Type": "NodeText",
"Data": " 后拖入"
}
]
}

View File

@ -4,7 +4,7 @@
"Properties": {
"id": "20211226123038-4umgpxy",
"title": "資料文件",
"updated": "20220824172748"
"updated": "20220902220120"
},
"Children": [
{
@ -91,7 +91,7 @@
"ListData": {},
"Properties": {
"id": "20220824172728-jpp1e8c",
"updated": "20220824172728"
"updated": "20220902220120"
},
"Children": [
{
@ -163,7 +163,7 @@
},
"Properties": {
"id": "20220824172728-deq7vh0",
"updated": "20220824172728"
"updated": "20220902220120"
},
"Children": [
{
@ -171,7 +171,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20220824172728-2gnv8ox",
"updated": "20220824172728"
"updated": "20220902220120"
},
"Children": [
{
@ -209,6 +209,30 @@
"Type": "NodeKbdCloseMarker"
}
]
},
{
"Type": "NodeText",
"Data": ",或者按住 "
},
{
"Type": "NodeKbd",
"Data": "kbd",
"Children": [
{
"Type": "NodeKbdOpenMarker"
},
{
"Type": "NodeText",
"Data": "Alt"
},
{
"Type": "NodeKbdCloseMarker"
}
]
},
{
"Type": "NodeText",
"Data": " 後拖入"
}
]
}

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ require (
github.com/88250/css v0.1.2
github.com/88250/flock v0.8.2
github.com/88250/gulu v1.2.3-0.20220720144315-065ef35ec583
github.com/88250/lute v1.7.5-0.20220901071335-8565d1e64571
github.com/88250/lute v1.7.5-0.20220902131941-ca638a29c6d8
github.com/88250/melody v0.0.0-20201115062536-c0b3394adcd1
github.com/88250/pdfcpu v0.3.13
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1

View File

@ -19,8 +19,8 @@ github.com/88250/go-sqlite3 v1.14.13-0.20220714142610-fbbda1ee84f5 h1:8HdZozCsXS
github.com/88250/go-sqlite3 v1.14.13-0.20220714142610-fbbda1ee84f5/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/88250/gulu v1.2.3-0.20220720144315-065ef35ec583 h1:FhA/zJemLrbOYJpdMIMBezO5rGigQSdPR1kv+aztHfA=
github.com/88250/gulu v1.2.3-0.20220720144315-065ef35ec583/go.mod h1:I1qBzsksFL2ciGSuqDE7R3XW4BUMrfDgOvSXEk7FsAI=
github.com/88250/lute v1.7.5-0.20220901071335-8565d1e64571 h1:InniTKfj4OZjE0VFhLZmJT6PKGZQfqw6k06/Zvwh35c=
github.com/88250/lute v1.7.5-0.20220901071335-8565d1e64571/go.mod h1:Bdu9LRNjQhtL3TftbtpjIWTwDVAXoS7AD8QsZQPk7zo=
github.com/88250/lute v1.7.5-0.20220902131941-ca638a29c6d8 h1:ipqlRGbdsF7+GR9yVn+tkhYJbgtT40VOZcWTREG6D/U=
github.com/88250/lute v1.7.5-0.20220902131941-ca638a29c6d8/go.mod h1:cEoBGi0zArPqAsp0MdG9SKinvH/xxZZWXU7sRx8vHSA=
github.com/88250/melody v0.0.0-20201115062536-c0b3394adcd1 h1:9Cb+iN639vUI2OcIBc+4oGwml9/0J6bL6dWNb8Al+1s=
github.com/88250/melody v0.0.0-20201115062536-c0b3394adcd1/go.mod h1:jH6MMPr8G7AMzaVmWHXZQiB1DKO3giWbcWZ7UoJ1teI=
github.com/88250/pdfcpu v0.3.13 h1:touMWMZkCGalMIbEg9bxYp7rETM+zwb9hXjwhqi4I7Q=