mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
✏️ Fix typo 1b3a9c903b
This commit is contained in:
parent
1b3a9c903b
commit
91864e9b5d
1 changed files with 5 additions and 9 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue