This commit is contained in:
Vanessa 2022-10-12 08:31:15 +08:00
parent 5e6efbce4f
commit 2ccc988fb9
3 changed files with 10 additions and 10 deletions

View file

@ -141,7 +141,7 @@ export class Gutter {
document.querySelector("#toolbarEdit use").setAttribute("xlink:href", "#iconPreview");
enableProtyle(protyle);
gutterFold();
})
});
}
} else {
gutterFold();

View file

@ -1,5 +1,5 @@
import {fetchPost} from "../../util/fetch";
import {focusBlock, focusByRange, focusByWbr, focusSideBlock, getEditorRange} from "../util/selection";
import {focusBlock, focusByWbr, focusSideBlock, getEditorRange} from "../util/selection";
import {getTopAloneElement} from "./getBlock";
import {Constants} from "../../constants";
import {blockRender} from "../markdown/blockRender";
@ -450,7 +450,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
let range;
if (focus && getSelection().rangeCount > 0) {
range = getSelection().getRangeAt(0);
range.insertNode(document.createElement("wbr"))
range.insertNode(document.createElement("wbr"));
}
/// #if !MOBILE
if (updateElements.length === 0) {