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

@ -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