mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 18:30:16 +01:00
This commit is contained in:
parent
6e475e1857
commit
b981fa08a0
14 changed files with 53 additions and 22 deletions
|
|
@ -230,5 +230,30 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
|
|||
});
|
||||
}
|
||||
});
|
||||
menu.addItem({
|
||||
icon: "iconMath",
|
||||
label: window.siyuan.languages.template,
|
||||
click() {
|
||||
const id = Lute.NewNodeID();
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
name: window.siyuan.languages.template,
|
||||
avID,
|
||||
type: "template",
|
||||
id
|
||||
}], [{
|
||||
action: "removeAttrViewCol",
|
||||
id,
|
||||
avID,
|
||||
}]);
|
||||
addAttrViewColAnimation({
|
||||
blockElement: blockElement,
|
||||
protyle: protyle,
|
||||
type: "template",
|
||||
name: window.siyuan.languages.template,
|
||||
id
|
||||
});
|
||||
}
|
||||
});
|
||||
return menu;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue