fix: 格式刷block节点偶现 selectNode 无法选中节点的错误
This commit is contained in:
parent
fc067674ab
commit
73ac6a8ee3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue