🐛 聚焦列表 * 1

* 2,第一个列表项反向缩进后刷新会关闭页签
This commit is contained in:
Vanessa 2023-02-02 23:16:18 +08:00
parent d5158ee9bd
commit 99ec37e78c
4 changed files with 11 additions and 8 deletions

View file

@ -168,8 +168,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
const range = getEditorRange(protyle.wysiwyg.element);
if (siyuanHTML) {
// 编辑器内部粘贴
const tempElement = document.createElement("div")
tempElement.innerHTML = siyuanHTML
const tempElement = document.createElement("div");
tempElement.innerHTML = siyuanHTML;
let isBlock = false;
tempElement.querySelectorAll("[data-node-id]").forEach((e) => {
const newId = Lute.NewNodeID();