This commit is contained in:
Vanessa 2023-09-11 13:58:13 +08:00
parent 7e8e6167ff
commit 2e0b8945cf
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ export const about = {
<button id="checkUpdateBtn" class="b3-button b3-button--outline fn__block">
<svg><use xlink:href="#iconRefresh"></use></svg>${window.siyuan.languages.checkUpdate}
</button>
<div class="fn__hr${isBrowser() ? "" : " fn__none"}"></div>
<div class="fn__hr${(isInIOS() || isInAndroid()) ? "" : " fn__none"}"></div>
<button id="menuSafeQuit" class="b3-button b3-button--outline fn__block${(isInIOS() || isInAndroid()) ? "" : " fn__none"}">
<svg><use xlink:href="#iconQuit"></use></svg>${window.siyuan.languages.safeQuit}
</button>

View file

@ -364,8 +364,8 @@ export class Toolbar {
}
}
contents.childNodes.forEach((item: HTMLElement, index) => {
if (item.nodeType !== 3 && item.tagName !== "BR") {
const types = item.getAttribute("data-type").split(" ");
if (item.nodeType !== 3 && item.tagName !== "BR" && item.tagName !== "IMG") {
const types = (item.getAttribute("data-type") || "").split(" ");
if (type === "clear") {
for (let i = 0; i < types.length; i++) {
if (textObj && textObj.type === "text") {