mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Copy block hyperlink (Markdown) anchor text length follows editor setting The maximum length of block ref dynamic anchor text Fix https://github.com/siyuan-note/siyuan/issues/8144
This commit is contained in:
@@ -473,7 +473,7 @@ export const copySubMenu = (id: string, accelerator = true, focusElement?: Eleme
|
||||
label: window.siyuan.languages.copyProtocolInMd,
|
||||
click: () => {
|
||||
fetchPost("/api/block/getRefText", {id}, (response) => {
|
||||
writeText(`[${response.data.substring(0, Constants.SIZE_LINK_TEXT_MAX)}](siyuan://blocks/${id})`);
|
||||
writeText(`[${response.data}](siyuan://blocks/${id})`);
|
||||
});
|
||||
if (focusElement) {
|
||||
focusBlock(focusElement);
|
||||
|
||||
Reference in New Issue
Block a user