mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🐛 聚焦列表 * 1
* 2,第一个列表项反向缩进后刷新会关闭页签
This commit is contained in:
parent
d5158ee9bd
commit
99ec37e78c
4 changed files with 11 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue