mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 06:46:09 +01:00
This commit is contained in:
parent
0f62506d25
commit
dde4c66033
2 changed files with 28 additions and 10 deletions
|
|
@ -187,7 +187,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
lastElement = item;
|
||||
}
|
||||
});
|
||||
if (editableElement && editableElement.textContent === "") {
|
||||
if (editableElement && editableElement.textContent === "" && blockElement.classList.contains("p")) {
|
||||
// 选中当前块所有内容粘贴再撤销会导致异常 https://ld246.com/article/1662542137636
|
||||
doOperation.find((item, index) => {
|
||||
if (item.id === id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue