This commit is contained in:
parent
f2a53014fb
commit
5456d032c7
2 changed files with 4 additions and 2 deletions
|
@ -2244,7 +2244,7 @@ export class Gutter {
|
|||
let iconAriaLabel = isMac() ? window.siyuan.languages.rowTip : window.siyuan.languages.rowTip.replace("⇧", "Shift+");
|
||||
if (protyle.disabled) {
|
||||
iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.indexOf("<br"))
|
||||
} else if (rowElement.querySelector('[data-dtype="block"]').getAttribute("data-detached") === "true") {
|
||||
} else if (rowElement.querySelector('[data-dtype="block"]')?.getAttribute("data-detached") === "true") {
|
||||
iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.lastIndexOf("<br"))
|
||||
}
|
||||
html = `<button data-type="NodeAttributeViewRowMenu" data-node-id="${dataNodeId}" data-row-id="${rowElement.dataset.id}" class="ariaLabel" data-position="right" aria-label="${iconAriaLabel}"><svg><use xlink:href="#iconDrag"></use></svg><span ${protyle.disabled ? "" : 'draggable="true" class="fn__grab"'}></span></button>`;
|
||||
|
|
|
@ -1193,7 +1193,9 @@ export class Toolbar {
|
|||
protyle.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("open-noneditableblock", {
|
||||
protyle,
|
||||
toolbar: this
|
||||
toolbar: this,
|
||||
blockElement: nodeElement,
|
||||
renderElement,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue