Vanessa 2025-05-18 10:30:42 +08:00
parent b216ccd367
commit b72d39e3ec

View file

@ -59,7 +59,7 @@ export class Link extends ToolbarItem {
if (!dataHref && clipObject.textPlain.startsWith("assets/")) {
dataHref = clipObject.textPlain;
}
// https://github.com/siyuan-note/siyuan/issues/14704 & https://github.com/siyuan-note/siyuan/issues/6798
// https://github.com/siyuan-note/siyuan/issues/14704#issuecomment-2867555769 第一点 & https://github.com/siyuan-note/siyuan/issues/6798
if (dataHref && !dataText) {
dataText = decodeURIComponent(dataHref.replace("https://", "").replace("http://", ""));
if (dataHref.length > Constants.SIZE_LINK_TEXT_MAX) {