mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
67c1e933c5
commit
5ec9d9dc36
2 changed files with 15 additions and 5 deletions
|
|
@ -107,7 +107,9 @@ export const openCardByData = (cardsData: { cards: ICard[], unreviewedCount: num
|
||||||
destroyCallback() {
|
destroyCallback() {
|
||||||
if (editor) {
|
if (editor) {
|
||||||
editor.destroy();
|
editor.destroy();
|
||||||
window.siyuan.mobile.popEditor = null;
|
if (window.siyuan.mobile) {
|
||||||
|
window.siyuan.mobile.popEditor = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -124,7 +126,9 @@ export const openCardByData = (cardsData: { cards: ICard[], unreviewedCount: num
|
||||||
},
|
},
|
||||||
typewriterMode: false
|
typewriterMode: false
|
||||||
});
|
});
|
||||||
window.siyuan.mobile.popEditor = editor;
|
if (window.siyuan.mobile) {
|
||||||
|
window.siyuan.mobile.popEditor = editor;
|
||||||
|
}
|
||||||
if (window.siyuan.config.editor.readOnly) {
|
if (window.siyuan.config.editor.readOnly) {
|
||||||
disabledProtyle(editor.protyle);
|
disabledProtyle(editor.protyle);
|
||||||
}
|
}
|
||||||
|
|
@ -365,7 +369,9 @@ const newRound = (countElement: Element, editor: Protyle, actionElements: NodeLi
|
||||||
countElement.classList.add("fn__none");
|
countElement.classList.add("fn__none");
|
||||||
editor.protyle.element.classList.add("fn__none");
|
editor.protyle.element.classList.add("fn__none");
|
||||||
const emptyElement = editor.protyle.element.nextElementSibling;
|
const emptyElement = editor.protyle.element.nextElementSibling;
|
||||||
emptyElement.innerHTML = `<div>♻️ ${window.siyuan.languages.continueReview2.replace("${count}", unreviewedCount)}</div>
|
emptyElement.innerHTML = `<div>♻️ </div>
|
||||||
|
<span>${window.siyuan.languages.continueReview2.replace("${count}", unreviewedCount)}</span>
|
||||||
|
<div class="fn__hr"></div>
|
||||||
<button data-type="newround" class="b3-button">${window.siyuan.languages.continueReview1}</button>`;
|
<button data-type="newround" class="b3-button">${window.siyuan.languages.continueReview1}</button>`;
|
||||||
emptyElement.classList.remove("fn__none");
|
emptyElement.classList.remove("fn__none");
|
||||||
actionElements[0].classList.add("fn__none");
|
actionElements[0].classList.add("fn__none");
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,9 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |
|
||||||
destroyCallback() {
|
destroyCallback() {
|
||||||
if (edit) {
|
if (edit) {
|
||||||
edit.destroy();
|
edit.destroy();
|
||||||
window.siyuan.mobile.popEditor = null;
|
if (window.siyuan.mobile) {
|
||||||
|
window.siyuan.mobile.popEditor = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -62,7 +64,9 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |
|
||||||
breadcrumbDocName: true
|
breadcrumbDocName: true
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
window.siyuan.mobile.popEditor = edit;
|
if (window.siyuan.mobile) {
|
||||||
|
window.siyuan.mobile.popEditor = edit;
|
||||||
|
}
|
||||||
if (window.siyuan.config.editor.readOnly) {
|
if (window.siyuan.config.editor.readOnly) {
|
||||||
disabledProtyle(edit.protyle);
|
disabledProtyle(edit.protyle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue