mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
This commit is contained in:
parent
dd69fa26a7
commit
ed3869f7ae
1 changed files with 3 additions and 2 deletions
|
|
@ -265,13 +265,14 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
} else if (isFileAnnotation(textPlain)) {
|
||||
protyle.toolbar.setInlineMark(protyle, "file-annotation-ref", "range", {
|
||||
type: "file-annotation-ref",
|
||||
color: textPlain.substring(2).replace(/ ".+">>$/, "") + Constants.ZWSP + range.toString()
|
||||
color: textPlain.substring(2).replace(/ ".+">>$/, "")
|
||||
});
|
||||
return;
|
||||
} else if (protyle.lute.IsValidLinkDest(textPlain)) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/8475
|
||||
protyle.toolbar.setInlineMark(protyle, "a", "range", {
|
||||
type: "a",
|
||||
color: textPlain + Constants.ZWSP + range.toString()
|
||||
color: textPlain
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue