mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01: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:
parent
72fc754b34
commit
e4ea1a7824
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ export const copySubMenu = (id: string, accelerator = true, focusElement?: Eleme
|
||||||
label: window.siyuan.languages.copyProtocolInMd,
|
label: window.siyuan.languages.copyProtocolInMd,
|
||||||
click: () => {
|
click: () => {
|
||||||
fetchPost("/api/block/getRefText", {id}, (response) => {
|
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) {
|
if (focusElement) {
|
||||||
focusBlock(focusElement);
|
focusBlock(focusElement);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue