diff --git a/src/commands/view/ShowOffset.ts b/src/commands/view/ShowOffset.ts index a7953aadd3..7e9c1cfa7a 100644 --- a/src/commands/view/ShowOffset.ts +++ b/src/commands/view/ShowOffset.ts @@ -18,9 +18,9 @@ export default { const zoom = this.em.getZoomDecimal(); const el = opt.el as HTMLElement | undefined; - // if (!(el instanceof HTMLElement)) { - // return; - // } + if (!(el instanceof HTMLElement)) { + return; + } if (!config.showOffsets || !el || isTextNode(el) || (!config.showOffsetsSelected && state == 'Fixed')) { editor.stopCommand(`${this.id}`, opts);