From 2d1195ee969f9dce12aaa95ec705b8dacbd674c3 Mon Sep 17 00:00:00 2001 From: Aljaz Grilc Date: Mon, 18 Mar 2024 11:19:47 +0100 Subject: [PATCH] Resolve status display issue for CKEditor instances --- service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service.js b/service.js index 3ac0f15..d66ff98 100644 --- a/service.js +++ b/service.js @@ -617,8 +617,8 @@ class BesCKService extends BesService { * @param {Element} el DOM element that was checked * @param {Array} matches Grammar mistakes */ - markProofed(el, matches) { - super.markProofed(el, matches) + markProofed(el, matches, mistakesCounter) { + super.markProofed(el, matches, mistakesCounter) // This is a solution for displaying mistakes in CKEditor. It is not the best solution, but it works for now. if (this.ckEditorInstance) window.dispatchEvent(new Event('resize'))