diff --git a/service.js b/service.js index fdc8a16..95f3b1b 100644 --- a/service.js +++ b/service.js @@ -705,6 +705,18 @@ class BesCKService extends BesService { this.proof(hostElement) }, 500) }) + this.ckEditorInstance.commands.get('bold').on('execute', () => { + setTimeout(() => { + this.repositionMistakes() + window.dispatchEvent(new Event('resize')) + }, 500) + }) + this.ckEditorInstance.commands.get('italic').on('execute', () => { + setTimeout(() => { + this.repositionMistakes() + window.dispatchEvent(new Event('resize')) + }, 500) + }) } /**