fix(): 编辑器空值判定错误
This commit is contained in:
parent
6173480172
commit
ee77169d29
|
@ -272,6 +272,7 @@ class ChangeModel implements ChangeInterface {
|
|||
const tags = schema.getAllowInTags();
|
||||
return (
|
||||
node.isEmptyWithTrim(container) &&
|
||||
container.children().length === 1 &&
|
||||
!container.allChildren().some((child) => tags.includes(child.name))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue