This commit is contained in:
Vanessa 2023-03-16 11:19:16 +08:00
parent 66d7eabf5a
commit e0ebc536d5

View file

@ -172,9 +172,9 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
return;
}
// https://github.com/siyuan-note/siyuan/issues/5083
if (!isMobile() && (this.splitChar === "/" || this.splitChar === "、")) {
if (this.splitChar === "/" || this.splitChar === "、") {
clearTimeout(this.timeId);
if (this.enableSlash) {
if (this.enableSlash && !isMobile()) {
this.genHTML(hintSlash(key, protyle), protyle);
}
return;
@ -201,7 +201,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
}
}
public bindUploadEvent (protyle:IProtyle, element:HTMLElement) {
public bindUploadEvent(protyle: IProtyle, element: HTMLElement) {
const uploadElement = element.querySelector('input[type="file"]');
if (uploadElement) {
uploadElement.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {