Resolve status display issue for CKEditor instances

This commit is contained in:
Aljaž Grilc 2024-03-18 11:19:47 +01:00
parent 9680ece493
commit 2d1195ee96

View File

@ -617,8 +617,8 @@ class BesCKService extends BesService {
* @param {Element} el DOM element that was checked * @param {Element} el DOM element that was checked
* @param {Array} matches Grammar mistakes * @param {Array} matches Grammar mistakes
*/ */
markProofed(el, matches) { markProofed(el, matches, mistakesCounter) {
super.markProofed(el, matches) 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. // 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')) if (this.ckEditorInstance) window.dispatchEvent(new Event('resize'))