This commit is contained in:
Vanessa 2025-02-16 19:03:38 +08:00
parent 46b004129d
commit eb0a3fc4e8
4 changed files with 6 additions and 6 deletions

View file

@ -722,7 +722,7 @@ export const genImportMenu = (notebookId: string, pathString: string) => {
files = (getDockByType("file").data["file"] as Files);
/// #endif
const liElement = files.element.querySelector(`[data-path="${pathString}"]`);
liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden")
liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden");
files.getLeaf(liElement, notebookId, true);
window.siyuan.menus.menu.remove();
};

View file

@ -68,7 +68,7 @@ export class Title {
}
if (this.editElement.textContent === "") {
this.editElement.querySelectorAll("br").forEach(item => {
item.remove()
item.remove();
});
}
this.rename(protyle);

View file

@ -40,7 +40,7 @@ export const readText = () => {
};
export const readClipboard = async () => {
const text: { textPlain?: string, textHTML?: string } = {}
const text: { textPlain?: string, textHTML?: string } = {};
if (isInAndroid()) {
text.textPlain = window.JSAndroid.readClipboard();
} else if (isInHarmony()) {
@ -58,7 +58,7 @@ export const readClipboard = async () => {
}
}
return text;
}
};
export const writeText = (text: string) => {
let range: Range;

View file

@ -279,8 +279,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
files = event.dataTransfer.items;
}
} else {
textHTML = event.textHTML
textPlain = event.textPlain
textHTML = event.textHTML;
textPlain = event.textPlain;
}
// Improve the pasting of selected text in PDF rectangular annotation https://github.com/siyuan-note/siyuan/issues/11629