mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
This commit is contained in:
parent
b4e27951dc
commit
6711f51247
10 changed files with 19 additions and 7 deletions
|
|
@ -419,7 +419,7 @@ export class Asset extends Model {
|
|||
<span class="b3-menu__label">${window.siyuan.languages.showHideBg}</span>
|
||||
</button>
|
||||
<button class="b3-menu__item pdf__util__hide" data-type="copy">
|
||||
<svg class="b3-menu__icon"><use xlink:href="#iconGraph"></use></svg>
|
||||
<svg class="b3-menu__icon"><use xlink:href="#iconRef"></use></svg>
|
||||
<span class="b3-menu__label">${window.siyuan.languages.copyAnnotation}</span>
|
||||
</button>
|
||||
<button class="b3-menu__item pdf__util__hide" data-type="remove">
|
||||
|
|
|
|||
|
|
@ -558,7 +558,7 @@ export const openAttr = (nodeElement: Element, protyle: IProtyle, focusName = "b
|
|||
export const copySubMenu = (id: string, accelerator = true, focusElement?: Element) => {
|
||||
return [
|
||||
{
|
||||
icon: "iconGraph",
|
||||
icon: "iconRef",
|
||||
accelerator: accelerator ? window.siyuan.config.keymap.editor.general.copyBlockRef.custom : undefined,
|
||||
label: window.siyuan.languages.copyBlockRef,
|
||||
click: () => {
|
||||
|
|
|
|||
|
|
@ -808,7 +808,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
|
|||
if (linkAddress?.startsWith("siyuan://blocks/")) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: `${window.siyuan.languages.turnInto} <b>${window.siyuan.languages.blockRef}</b>`,
|
||||
icon: "iconGraph",
|
||||
icon: "iconRef",
|
||||
click() {
|
||||
linkElement.setAttribute("data-subtype", "s");
|
||||
const types = linkElement.getAttribute("data-type").split(" ");
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||
}, {
|
||||
filter: ["引用块", "yinyong", "yy", "block reference"],
|
||||
value: "((",
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconGraph"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.blockRef}</span><span class="b3-list-item__meta">((</span></div>`,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconRef"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.blockRef}</span><span class="b3-list-item__meta">((</span></div>`,
|
||||
}, {
|
||||
filter: ["嵌入块", "qianrukuai", "qrk", "embed block"],
|
||||
value: "{{",
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ export class Options {
|
|||
name: "block-ref",
|
||||
hotkey: window.siyuan.config.keymap.editor.insert.blockRef.custom,
|
||||
lang: "blockRef",
|
||||
icon: "iconGraph",
|
||||
icon: "iconRef",
|
||||
tipPosition: "ne",
|
||||
}, {
|
||||
name: "a",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue