fix: 格式刷block节点偶现 selectNode 无法选中节点的错误

This commit is contained in:
yanmao 2021-12-07 00:43:45 +08:00
parent fc067674ab
commit 73ac6a8ee3
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ export default class extends Plugin<Options> {
}
paintBlocks(currentBlock: NodeInterface, activeBlocks: NodeInterface[]) {
if (!isEngine(this.editor)) return;
if (!isEngine(this.editor) || !currentBlock.inEditor()) return;
const { node, change } = this.editor!;
const blockApi = this.editor.block;
const range = change.range.get();