mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 07:32:34 +01:00
This commit is contained in:
parent
b2c78cbceb
commit
e35ab0db64
1 changed files with 3 additions and 1 deletions
|
|
@ -373,8 +373,10 @@ export class WYSIWYG {
|
||||||
parentElement = getContenteditableElement(nodeElement);
|
parentElement = getContenteditableElement(nodeElement);
|
||||||
}
|
}
|
||||||
if (parentElement) {
|
if (parentElement) {
|
||||||
|
// 引用文本剪切 https://ld246.com/article/1647689760545
|
||||||
|
// 表格多行剪切 https://ld246.com/article/1652603836350
|
||||||
Array.from(parentElement.children).forEach(item => {
|
Array.from(parentElement.children).forEach(item => {
|
||||||
if (item.textContent === "") {
|
if (item.textContent === "" && (item.nodeType === 1 && item.tagName !== "BR")) {
|
||||||
item.remove();
|
item.remove();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue