mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 09:24:06 +01:00
This commit is contained in:
parent
916bf685ac
commit
9a1b8148e1
4 changed files with 48 additions and 33 deletions
|
|
@ -32,6 +32,7 @@ import {deleteFile} from "../../editor/deleteFile";
|
|||
import {genEmptyElement} from "../../block/util";
|
||||
import {transaction} from "../wysiwyg/transaction";
|
||||
import {hideTooltip} from "../../dialog/tooltip";
|
||||
import {transferBlockRef} from "../../menus/block";
|
||||
|
||||
export class Title {
|
||||
public element: HTMLElement;
|
||||
|
|
@ -307,6 +308,10 @@ export class Title {
|
|||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
const countElement = this.element.lastElementChild.querySelector(".protyle-attr--refcount")
|
||||
if (countElement && countElement.textContent) {
|
||||
transferBlockRef(protyle.block.rootID);
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.attr,
|
||||
accelerator: window.siyuan.config.keymap.editor.general.attr.custom + "/" + updateHotkeyTip("⇧Click"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue