Resolve status display issue for CKEditor instances
This commit is contained in:
		@@ -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'))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user