From 91864e9b5dfe8c0e21220a1006822e9c768f57c8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 1 May 2024 12:06:38 +0800 Subject: [PATCH] :pencil2: Fix typo https://github.com/siyuan-note/siyuan/commit/1b3a9c903b8752221673664d83ed829470c2a0f3 --- app/src/protyle/wysiwyg/remove.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index f44a2a588..348e255f9 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -1,17 +1,13 @@ -import { - focusBlock, - focusByRange, - focusByWbr, - getSelectionOffset, - setLastNodeRange -} from "../util/selection"; +import {focusBlock, focusByRange, focusByWbr, getSelectionOffset, setLastNodeRange} from "../util/selection"; import { getContenteditableElement, getLastBlock, getNextBlock, getPreviousBlock, getTopAloneElement, - getTopEmptyElement, hasNextSibling, hasPreviousSibling + getTopEmptyElement, + hasNextSibling, + hasPreviousSibling } from "./getBlock"; import {transaction, turnsIntoTransaction, updateTransaction} from "./transaction"; import {cancelSB, genEmptyElement} from "../../block/util"; @@ -417,7 +413,7 @@ export const removeImage = (imgSelectElement: Element, nodeElement: HTMLElement, imgSelectElement.remove(); updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML); focusByWbr(nodeElement, range); - // 不太难清楚为什么删除图片后无法上下键定位,但重绘后就好了 https://ld246.com/article/1714314625702 + // 不太清楚为什么删除图片后无法上下键定位,但重绘后就好了 https://ld246.com/article/1714314625702 const editElement = getContenteditableElement(nodeElement); if (editElement.innerHTML.trim() === "") { editElement.innerHTML = "";