mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 清除行级元素会把内容也清空
This commit is contained in:
@@ -600,7 +600,7 @@ export class Toolbar {
|
||||
for (let i = 0; i < newNodes.length; i++) {
|
||||
const currentNewNode = newNodes[i] as HTMLElement;
|
||||
const nextNewNode = newNodes[i + 1] as HTMLElement;
|
||||
const currentType = currentNewNode.getAttribute("data-type") || "";
|
||||
const currentType = currentNewNode.nodeType !== 3 ? (currentNewNode.getAttribute("data-type") || "") : "";
|
||||
if (currentNewNode.nodeType !== 3 && nextNewNode && nextNewNode.nodeType !== 3 &&
|
||||
nextNewNode.tagName === currentNewNode.tagName &&
|
||||
// 表格内多个换行 https://github.com/siyuan-note/siyuan/issues/12300
|
||||
|
||||
Reference in New Issue
Block a user