This commit is contained in:
Vanessa 2023-05-26 23:00:09 +08:00
parent d2cfe413a2
commit a14e1b5917

View file

@ -265,13 +265,13 @@ 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 + Lute.EscapeHTMLStr(range.toString())
color: textPlain.substring(2).replace(/ ".+">>$/, "") + Constants.ZWSP + range.toString()
});
return;
} else if (protyle.lute.IsValidLinkDest(textPlain)) {
protyle.toolbar.setInlineMark(protyle, "a", "range", {
type: "a",
color: textPlain + Constants.ZWSP + Lute.EscapeHTMLStr(range.toString())
color: textPlain + Constants.ZWSP + range.toString()
});
return;
}