fix(): 编辑器空值判定错误

This commit is contained in:
yanmao 2021-11-18 15:50:36 +08:00
parent 6173480172
commit ee77169d29
1 changed files with 1 additions and 0 deletions

View File

@ -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))
);
}