mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🚨
This commit is contained in:
parent
ad55e13c95
commit
2780d02181
1 changed files with 7 additions and 7 deletions
|
|
@ -60,7 +60,7 @@ export class Title {
|
|||
}
|
||||
this.rename(protyle);
|
||||
});
|
||||
this.editElement.addEventListener("compositionend", (event: InputEvent) => {
|
||||
this.editElement.addEventListener("compositionend", () => {
|
||||
this.rename(protyle);
|
||||
});
|
||||
this.editElement.addEventListener("drop", (event: DragEvent) => {
|
||||
|
|
@ -132,7 +132,7 @@ export class Title {
|
|||
}
|
||||
protyle.toolbar?.element.classList.add("fn__none");
|
||||
window.siyuan.menus.menu.remove();
|
||||
const range = getEditorRange(this.editElement)
|
||||
const range = getEditorRange(this.editElement);
|
||||
if (range.toString() !== "") {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
icon: "iconCopy",
|
||||
|
|
@ -152,7 +152,7 @@ export class Title {
|
|||
document.execCommand("cut");
|
||||
setTimeout(() => {
|
||||
this.rename(protyle);
|
||||
}, Constants.TIMEOUT_INPUT)
|
||||
}, Constants.TIMEOUT_INPUT);
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
|
|
@ -160,12 +160,12 @@ export class Title {
|
|||
accelerator: "⌫",
|
||||
label: window.siyuan.languages.delete,
|
||||
click: () => {
|
||||
const range = getEditorRange(this.editElement)
|
||||
const range = getEditorRange(this.editElement);
|
||||
range.extractContents();
|
||||
focusByRange(range)
|
||||
focusByRange(range);
|
||||
setTimeout(() => {
|
||||
this.rename(protyle);
|
||||
}, Constants.TIMEOUT_INPUT)
|
||||
}, Constants.TIMEOUT_INPUT);
|
||||
}
|
||||
}).element);
|
||||
}
|
||||
|
|
@ -177,7 +177,7 @@ export class Title {
|
|||
document.execCommand("paste");
|
||||
setTimeout(() => {
|
||||
this.rename(protyle);
|
||||
}, Constants.TIMEOUT_INPUT)
|
||||
}, Constants.TIMEOUT_INPUT);
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue