🎨 桌面端拖入文件时可选择 使用 file:// 绝对路径并链接
或 复制为资源文件并插入
https://github.com/siyuan-note/siyuan/issues/5369
This commit is contained in:
parent
6d99389c01
commit
ea3070a204
3 changed files with 448 additions and 48 deletions
|
@ -5,7 +5,7 @@
|
|||
"id": "20200924100744-br924ar",
|
||||
"title": "Assets",
|
||||
"type": "doc",
|
||||
"updated": "20220715105117"
|
||||
"updated": "20220824172918"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -66,44 +66,172 @@
|
|||
"Type": "NodeHeading",
|
||||
"HeadingLevel": 2,
|
||||
"Properties": {
|
||||
"id": "20201210194734-v2rmiaq"
|
||||
"id": "20201210194734-v2rmiaq",
|
||||
"updated": "20220824172803"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeHeadingC8hMarker",
|
||||
"Data": "## "
|
||||
"Type": "NodeText",
|
||||
"Data": "Insert picture or file"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220824172815-s8znsau",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172815-s8znsau",
|
||||
"updated": "20220824172918"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "In the editor, you can directly paste the copied picture or file in the system clipboard, or insert it by dragging and dropping the picture or file into the editor. There are two options when inserting:"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220824172815-ckivl7c",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20220824172815-ckivl7c",
|
||||
"updated": "20220824172815"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172815-q1oeusj",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220824172815-q1oeusj",
|
||||
"updated": "20220824172815"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172815-fqyy0l6",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172815-fqyy0l6",
|
||||
"updated": "20220824172815"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Copy as a resource file and insert"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ": Copy a picture or file as a resource file and insert, shortcut key "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Ctrl+V"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Insert picture"
|
||||
"ID": "20220824172815-0lsclx1",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220824172815-0lsclx1",
|
||||
"updated": "20220824172815"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172815-dqfasin",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172815-dqfasin",
|
||||
"updated": "20220824172815"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Use file:// absolute path and link"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ": Insert a picture or file into a hyperlink as a local absolute path, shortcut key "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Ctrl+Shift+V"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20210104091430-uqs502r",
|
||||
"ID": "20220824172815-6f3pj5z",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20210104091430-uqs502r",
|
||||
"updated": "20210503095810"
|
||||
"id": "20220824172815-6f3pj5z",
|
||||
"updated": "20220824172910"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "In the editor, you can directly paste the copied picture from the system clipboard, or you can also insert pictures by dragging and dropping picture files into the editor."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20210104091430-tj5w1co",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20210104091430-tj5w1co",
|
||||
"updated": "20210615102951"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "If you specify a title for a picture, then the title will be rendered below the image as a legend."
|
||||
"Data": "For pictures, if a picture title is specified during layout, the title will be rendered below the picture as a legend."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -112,13 +240,14 @@
|
|||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20210104091430-yd3zyeu",
|
||||
"updated": "20210604092437"
|
||||
"updated": "20220824172752"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeImage",
|
||||
"Data": "span",
|
||||
"Properties": {
|
||||
"parent-style": "display: block;",
|
||||
"style": "display: block;"
|
||||
},
|
||||
"Children": [
|
||||
|
@ -154,6 +283,10 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeKramdownSpanIAL",
|
||||
"Data": "{: style=\"display: block;\" parent-style=\"display: block;\"}"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "\n"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"id": "20200915214115-42b8zma",
|
||||
"title": "资源文件",
|
||||
"type": "doc",
|
||||
"updated": "20220715105016"
|
||||
"updated": "20220824172745"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -66,16 +66,13 @@
|
|||
"Type": "NodeHeading",
|
||||
"HeadingLevel": 2,
|
||||
"Properties": {
|
||||
"id": "20201210194734-lr6v0s2"
|
||||
"id": "20201210194734-lr6v0s2",
|
||||
"updated": "20220824171919"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeHeadingC8hMarker",
|
||||
"Data": "## "
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "插入图片"
|
||||
"Data": "插入图片或文件"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -84,12 +81,143 @@
|
|||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20210104091255-8s7avcx",
|
||||
"updated": "20210503095618"
|
||||
"updated": "20220824172231"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "在编辑器中可以直接粘贴系统剪切板中复制好的图片,或者通过拖拽图片文件到编辑器中也可以实现图片插入。"
|
||||
"Data": "在编辑器中可以直接粘贴系统剪切板中复制好的图片或文件,或者通过拖拽图片或文件到编辑器中也可以实现插入。插入时有两个选择:"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220824172203-etwu4qu",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20220824172203-etwu4qu",
|
||||
"updated": "20220824172531"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172204-xxh346y",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220824172204-xxh346y",
|
||||
"updated": "20220824172527"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172204-fct1t0t",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172204-fct1t0t",
|
||||
"updated": "20220824172527"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "复制为资源文件并插入"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":将图片或文件复制为资源文件并插入,快捷键 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Ctrl+V"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220824172403-agsj358",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220824172403-agsj358",
|
||||
"updated": "20220824172531"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172403-0fkrw8o",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172403-0fkrw8o",
|
||||
"updated": "20220824172531"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "使用 file:// 绝对路径并链接"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":将图片或文件以本地绝对路径方式插入超链接,快捷键 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Ctrl+Shift+V"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -98,12 +226,12 @@
|
|||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20210104091255-7fwvx7a",
|
||||
"updated": "20210615101500"
|
||||
"updated": "20220824172301"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "如果排版时指定了图片标题,则标题会被渲染在图片下方作为图注。"
|
||||
"Data": "对于图片,如果排版时指定了图片标题,则标题会被渲染在图片下方作为图注。"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -112,13 +240,14 @@
|
|||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20210512171633-u3iy2xx",
|
||||
"updated": "20210604092212"
|
||||
"updated": "20220824172745"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeImage",
|
||||
"Data": "span",
|
||||
"Properties": {
|
||||
"parent-style": "display: block;",
|
||||
"style": "display: block;"
|
||||
},
|
||||
"Children": [
|
||||
|
@ -156,7 +285,7 @@
|
|||
},
|
||||
{
|
||||
"Type": "NodeKramdownSpanIAL",
|
||||
"Data": "{: style=\"display: block;\"}"
|
||||
"Data": "{: style=\"display: block;\" parent-style=\"display: block;\"}"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Properties": {
|
||||
"id": "20211226123038-4umgpxy",
|
||||
"title": "資料文件",
|
||||
"updated": "20220715105038"
|
||||
"updated": "20220824172748"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -62,12 +62,12 @@
|
|||
"HeadingLevel": 2,
|
||||
"Properties": {
|
||||
"id": "20211226123051-ddr3yub",
|
||||
"updated": "20211226013452"
|
||||
"updated": "20220824172704"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "插入圖片"
|
||||
"Data": "插入圖片或文件"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -76,26 +76,157 @@
|
|||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20211226123051-zdhnfws",
|
||||
"updated": "20211228140810"
|
||||
"updated": "20220824172714"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "在編輯器中可以直接貼上系統剪貼簿中複製好的圖片,或者通過拖拽圖片文件到編輯器中也可以實作圖片插入。"
|
||||
"Data": "在編輯器中可以直接粘貼系統剪切板中復制好的圖片或文件,或者通過拖拽圖片或文件到編輯器中也可以實現插入。插入時有兩個選擇:"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20211226123051-yczpz86",
|
||||
"ID": "20220824172728-jpp1e8c",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20220824172728-jpp1e8c",
|
||||
"updated": "20220824172728"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172728-wiu7i7u",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220824172728-wiu7i7u",
|
||||
"updated": "20220824172728"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172728-scx3qge",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172728-scx3qge",
|
||||
"updated": "20220824172728"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "複製為資源文件並插入"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":將圖片或文件複製為資源文件並插入,快捷鍵 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Ctrl+V"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220824172728-deq7vh0",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220824172728-deq7vh0",
|
||||
"updated": "20220824172728"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220824172728-2gnv8ox",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220824172728-2gnv8ox",
|
||||
"updated": "20220824172728"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "使用 file:// 絕對路徑並鏈接"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":將圖片或文件以本地絕對路徑方式插入超鏈接,快捷鍵 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Ctrl+Shift+V"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220824172728-jc3gsl1",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20211226123051-yczpz86",
|
||||
"updated": "20211226013634"
|
||||
"id": "20220824172728-jc3gsl1",
|
||||
"updated": "20220824172728"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "如果排版時指定了圖片標題,則標題會被渲染在圖片下方作為圖注。"
|
||||
"Data": "對於圖片,如果排版時指定了圖片標題,則標題會被渲染在圖片下方作為圖注。"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -104,12 +235,15 @@
|
|||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20211226123051-2p8rbm4",
|
||||
"updated": "20211226013452"
|
||||
"updated": "20220824172748"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeImage",
|
||||
"Data": "span",
|
||||
"Properties": {
|
||||
"parent-style": "display: block;"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeBang"
|
||||
|
@ -142,6 +276,10 @@
|
|||
"Type": "NodeCloseParen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeKramdownSpanIAL",
|
||||
"Data": "{: parent-style=\"display: block;\"}"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue