mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 12:15:16 +01:00
This commit is contained in:
parent
c1bde4f917
commit
950f60fe10
2 changed files with 17 additions and 9 deletions
|
|
@ -2104,9 +2104,7 @@ export class WYSIWYG {
|
|||
if (fileElement && range.toString() === "") {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
const fileIds = fileElement.getAttribute("data-id").split("/");
|
||||
const linkAddress = `assets/${fileIds[1]}`;
|
||||
openLink(protyle, linkAddress, event, ctrlIsPressed);
|
||||
openLink(protyle, fileElement.getAttribute("data-id"), event, ctrlIsPressed);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue