mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🚨
This commit is contained in:
parent
46b004129d
commit
eb0a3fc4e8
4 changed files with 6 additions and 6 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ export class Title {
|
|||
}
|
||||
if (this.editElement.textContent === "") {
|
||||
this.editElement.querySelectorAll("br").forEach(item => {
|
||||
item.remove()
|
||||
item.remove();
|
||||
});
|
||||
}
|
||||
this.rename(protyle);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue